I run these queries and I get the same error even though it successfully inserts the data.
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
However, I can open PHPMyAdmin and run this query directly w/o any errors.Code:mysql_query( "insert into project_client ( client_company, client_address, client_suite, client_po_box, client_city, client_state, client_country, client_zip, client_phone, client_fax, client_web_url ) values ( '$_POST[client_company]', '$_POST[client_address]', '$_POST[client_suite]', '$_POST[client_po_box]', '$_POST[client_city]', '$_POST[client_state]', '$_POST[client_country]', '$_POST[client_zip]', '$_POST[client_phone]', '$_POST[client_fax]', '$_POST[client_web_url]' )" ); mysql_query( "insert into project_client set client_company = '$_POST[client_company]', client_address = '$_POST[client_address]', client_suite = '$_POST[client_suite]', client_po_box = '$_POST[client_po_box]', client_city = '$_POST[client_city]', client_state = '$_POST[client_state]', client_country = '$_POST[client_country]', client_zip = '$_POST[client_zip]', client_phone = '$_POST[client_phone]', client_fax = '$_POST[client_fax]', client_web_url = '$_POST[client_web_url]'" );
I am running PHP5 RC2 with MySQL 4.1.1a-alpha-nt.
Any help appreciated on why this is occuring.





Bookmarks