RE: Parsing CSV files into a MySQL Table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 	mysql_query ("INSERT INTO 'footable' (foo1, foo2, foo3, 
> foo4, foo5, foo6, foo7) 
> 		VALUES '$foo1', '$foo2', '$foo3', '$foo4', 
> '$foo5', '$foo6', '$foo7')"); }

You're also missing an opening bracket after 'VALUES'.  The statement should
be:

mysql_query ("INSERT INTO 'footable' (foo1, foo2, foo3, foo4, foo5, foo6,
foo7) 
VALUES ('$foo1', '$foo2', '$foo3', '$foo4', '$foo5', '$foo6', '$foo7')");

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux