Having a bit of trouble here. This small bit of data is my problem.
'**SEE BELOW/ADD'L LEGAL'
Look at that little single quote in the middle of the string, messin' up my database... Anywayz, i checked out the forums and the manual for a bit and found that most people are using the function addslashes(). Which is supposed to add backslashes before those single quotes so that I can enter this data into my database. The problem I am having is implementation. Being a newbie and all, I am not exactly sure how I should go about making my array into strings so that I can actually use the addslashes() function.
foreach($listingres as $record) // $listingres is the array I got from file()
{ $record=trim($record); // Otherwise the newline character will still be on the end of the line
$fields = explode("\t", $record); // Do stuff with the $fields array.