I have to make/use code that will read the data in a text file and insert the data into various fields in a MySQL database... Since the text files are generated by K Shell scripts...I can tell the script writer how to format the text files to allow for easier insertion. Right now I am clueless on where/how to start this? This is urgent...Please help....begs profusely How can I do this?
and yes, I am reading the manual! 😃
<? ###################### # This opens the text file ###################### $fcontents = implode ('', file ('getfile.php')); ###################### # Now show The content from file ###################### ?> <table width="640" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td> <div align="center"> <textarea name="textfield" cols="70" rows="20"><? echo "$fcontents"; ?></textarea> </div> </td> </tr> </table>
then do a mysql statemetn and insert $fcontents into mysql
I didn't think about it that way... Thanks....makes much more sense now. The getfile.php ---->is that the text filename or a specific use of PHP?
it makes the contents of it be inserted into the database.
you really shudnt do that, only store information like titles, contents etc, stuff that is needed. else how will u update masses of text or add a new link or sumthing?