eriknv Posted May 17, 2005 Share Posted May 17, 2005 Hi, I've update Cubecart from Upgrade from Alpha-2 to Beta and now I'll get this error: MySQL Error Occured 1064: You have an error in your SQL syntax near '' at line 1 QUERY = SELECT productId, image, price, name, sale_price FROM CubeCart_inventory WHERE `showFeatured` = 1 ORDER BY productId DESC LIMIT ( See it yourself: http://www.parfumwebshop.nl/webshop/upload/ ) What can I do now? :( Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted May 17, 2005 Share Posted May 17, 2005 Did you upgrade from Alpha-RGF to Alpha 2? Run this SQL command using a tool such as phpMyAdmin: ALTER TABLE `CubeCart_inventory` ADD `showFeatured` INT DEFAULT '1' NOT NULL; Remember to add the table prefix if you have one. Thanks for this Erik, I'm sure it will trick quite a few people. Quote Link to comment Share on other sites More sharing options...
eriknv Posted May 17, 2005 Author Share Posted May 17, 2005 Did you upgrade from Alpha-RGF to Alpha 2? Run this SQL command using a tool such as phpMyAdmin: ALTER TABLE `CubeCart_inventory` ADD `showFeatured` INT DEFAULT '1' NOT NULL; Remember to add the table prefix if you have one. Thanks for this Erik, I'm sure it will trick quite a few people. No I had upgrade from Alpha-2 to Beta. But I try what you say for Alpha-RGF to Alpha 2. Mayby it works :( Quote Link to comment Share on other sites More sharing options...
eriknv Posted May 17, 2005 Author Share Posted May 17, 2005 That table is already exist . What can I do now . Quote Link to comment Share on other sites More sharing options...
Guest Posted May 17, 2005 Share Posted May 17, 2005 Hi Brooky, I experienced the same SQL syntax error when upgrading from Alpha-2 to Beta. Was able to correct it by moving $latestProducts = $db->select("SELECT productId, image, price, name, sale_price FROM ".$config['dbprefix']."CubeCart_inventory WHERE `showFeatured` = 1 ORDER BY productId DESC LIMIT ".$config['noLatestProds']); from line 43 to line 47 in the includes/content/index.inc.php file just beneath if($config['showLatestProds']==1 && $latestProducts==TRUE){ which was its original location in Alpha-2 Quote Link to comment Share on other sites More sharing options...
eriknv Posted May 18, 2005 Author Share Posted May 18, 2005 Verry Thanx for this it works :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.