blanktarget Posted November 4, 2003 Share Posted November 4, 2003 I can\'t get this text fle imported. I have over one hundreditems I want into one field, the table has two fields, an auto_increm id field and the other field which is varchar data. I get all manner of errors inserting them. $sql= \"INSERT INTO table (\'column_2\') VALUES (\'item_1,\')\"; \"INSERT INTO table (\'column_2\') VALUES (\'item_2,)\"; etc 100 times. if (@mysql_query($sql)) { echo(\"<h4 align=\'center\'>Your listing has been added</h4><br>\"); } else { echo(\"<h4>Error the adding the listing: \" . mysql_error() . \"</h4>\"); } what is wrong? Quote Link to comment Share on other sites More sharing options...
shivabharat Posted November 4, 2003 Share Posted November 4, 2003 Have a look at this posting http://www.phpfreaks.com/forums/viewtopic....&highlight=load Quote Link to comment Share on other sites More sharing options...
blanktarget Posted November 4, 2003 Author Share Posted November 4, 2003 thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.