Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I have just installed SPPC into a new OsCommerce store and am getting 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 'limit 0, 20' at line 1

 

limit 0, 20

 

[TEP STOP]

 

I have searched the support thread for a solution, and have found similar issues but not a solution to this one. Any ideas on how to fix this?

 

The only other mod that I have installed is Purchase without Account, not sure if it could be a conflict with that.

Posted

There is a patch for a -20,20 problem if you follow the links in my signature block. Migh be able to apply same type of solution to your problem

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

Modify / replace Your split page class.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted
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 'limit 0, 20' at line 1

 

limit 0, 20

If this is the whole error message then there is something very, very wrong with a piece of code because limit 0,20 is not a query.

 

Anyway, this is the same message you posted in the SPPC thread and you still haven't figured out that only a psychic can help you here with a post like that.

 

You don't mention on what page this happens, you don't even tell is if this in the admin or on the catalog side. Bottom line: we don't have the information to even tell you where to start looking for the problem. You need to give more information.

Posted (edited)
If this is the whole error message then there is something very, very wrong with a piece of code because limit 0,20 is not a query.

 

Anyway, this is the same message you posted in the SPPC thread and you still haven't figured out that only a psychic can help you here with a post like that.

 

You don't mention on what page this happens, you don't even tell is if this in the admin or on the catalog side. Bottom line: we don't have the information to even tell you where to start looking for the problem. You need to give more information.

 

 

The error message is in the admin section on the orders.php page, and that is the full error message.

Edited by Gemini05
Posted
The error message is in the admin section on the orders.php page, and that is the full error message.

Then the problem is probably in this part close to the bottom of the file:

	} else {
  $orders_query_raw = "select o.orders_id, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total, cg.customers_group_name from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id) left join " . TABLE_CUSTOMERS . " c on c.customers_id = o.customers_id left join " . TABLE_CUSTOMERS_GROUPS . " cg using(customers_group_id), " . TABLE_ORDERS_STATUS . " s where o.orders_status = s.orders_status_id and s.language_id = '" . (int)$languages_id . "' and ot.class = 'ot_total' order by o.orders_id DESC";
  // EOF Separate Pricing Per Customer
}
$orders_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $orders_query_raw, $orders_query_numrows);
$orders_query = tep_db_query($orders_query_raw);

Did you change that for PWA or the lines above that?

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...