Jump to content

[SOLVED] What's wrong with my query???


gigantorTRON

Recommended Posts

Here's the query error:

 

INSERT INTO work VALUES(9200, 'US', 'Work', NULL, NULL)ON DUPLICATE KEY UPDATE . name ='Work' 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

 

Here's my SQL query:

 

$query3 = "INSERT INTO work VALUES(" . $new_table->ID . ", 'US', " . "'" . $new_table->Firm . "'" . ", NULL, NULL)" .

 

"ON DUPLICATE KEY UPDATE " .

"name =" . "'" . $new_table->Firm . "'";

 

The source is coming from a tab delimited file that does key checks on the tables...

Link to comment
https://forums.phpfreaks.com/topic/67322-solved-whats-wrong-with-my-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.