what am I doing wrong?

admin

Administrator
Staff member
MySQL tells me I have a syntax error in here.

mysql_query("INSERT INTO $dest_table VALUES ('$row[0]','$row[1]','$row[2]','$row[3]','$row[4]','$row[5]','$cost','$Keywords','$sku','$sold','')") or die("error populating destanation table Maps: " .mysql_error());

I have tried all combonations of magic_quotes and addslashes.

The data come from a table populated by LOAD INFILE I am then selecting from that table massaging the data and Inserting it into the destination table.

I am lost
 
Back
Top