OpusVista Posted February 7, 2007 Share Posted February 7, 2007 I am getting the following error when i try to use Discount Coupon 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 '-10, 10' at line 1 select * from discount_coupons cd order by cd.coupons_date_end, coupons_date_start limit -10, 10 Quote Link to comment Share on other sites More sharing options...
Jan Zonjee Posted February 7, 2007 Share Posted February 7, 2007 I am getting the following error when i try to use Discount Coupon Nothing to blame Discount Coupons for. It is your own fault because you work with a version of osC that is not updated. Quote Link to comment Share on other sites More sharing options...
Ausgirl Posted February 12, 2007 Share Posted February 12, 2007 I got this from another thread here. Try this: In the file admin/includes/classes/split_page_results.php Insert: if ($offset < 0) { $offset = 0 ; } Just before this line: $sql_query .= " limit " . $offset . ", " . $max_rows_per_page; } If you see the errors displayed on your store pages (not in the admin), you might also need to make this change in /includes/classes/split_page_results.php Insert: if ($offset < 0) { $offset = 0 ; } Just before this line: $this->sql_query .= " limit " . $offset . ", " . $this->number_of_rows_per_page; 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.