Jump to content

Does this query have any problems?


dyluck

Recommended Posts

Hi everyone,

 

Does anyone know if this syntax is correct?

 

$insert = "INSERT INTO product (TYPEID, SUBTID, SSTYPEID, PNAME, CATCHPHRASE, MAINKW, DESC, HEADER) VALUES ('$tid','$sid','$ssid','$product','$phrase,'$mkw','$desc','$link')";
mysql_query($insert) or die(mysql_error());

 

It keeps throwing this  :shrug:  error:

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 'DESC, HEADER) VALUES ('Test Product','Test Phrase,'Test Title','The des' at line 1

 

Thanks for all your help!

Link to comment
https://forums.phpfreaks.com/topic/185716-does-this-query-have-any-problems/
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.