Noutje 0 Posted June 6, 2004 This conributions works great except for a small problem i cannot fix. I get the error : 1064 - 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 select manufacturers_name from manufacturers where manufacturers_id= [TEP STOP] Anyone has a clue to fix this? Share this post Link to post Share on other sites
Guest Posted June 6, 2004 It is because your products have no manufacturers, the manufacturer_id in the products table is NULL. You can change the definition of the products table and put manufacturer_id NOT NULL DEFAULT '0'. Share this post Link to post Share on other sites
Nocturnaloner 0 Posted April 19, 2005 It is because your products have no manufacturers, the manufacturer_id in the products table is NULL. You can change the definition of the products table and put manufacturer_id NOT NULL DEFAULT '0'. <{POST_SNAPBACK}> Shazam! I hereby resurrect this thread, because not every case of the 1064 error is due to newer versions of MySQL or PHP. Share this post Link to post Share on other sites