Stevis2002 Posted July 30, 2005 Share Posted July 30, 2005 Can anybody help me with this sql error? I did the fix.... $wishlist_query_raw = "select * from " . TABLE_WISHLIST . " where customers_id = '" . $customer_id . "' order by products_name"; but i still get the following 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 '-12, 12' at line 1 select * from customers_wishlist where customers_id = '2' order by products_name limit -12, 12 Any Ideas?? Thanks, Steve Quote Link to comment Share on other sites More sharing options...
OceanRanch Posted July 30, 2005 Share Posted July 30, 2005 Since there are zero entries in the wishlist table the "limit" in split_page_results goes negative. New version of mysql does not like negative limits. Fix is here. http://www.oscommerce.com/community/bugs,1605 HTH Tom 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.
Note: Your post will require moderator approval before it will be visible.