i've tried using addslashes and i still can't get MySQL to accept my data with quotes. the data goes in, just loses the quotes. the 4th element is the only one with quotes in the data
<?
$fp = fopen("./filename.txt", "r");
while ($line = fgetcsv($fp, 1000, "\t"))
{
$line[3] = addslashes($line[3]);
$query = "INSERT into table (one,two,three,four,five) values ('$line[0]','$line[1]','$line[2]','$line[3]','$line[4]')";
mysql_db_query ($db, $query, $connection);
}
mysql_close($connection);
?>
would love some tips to help me out.