Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ERRORS


Guest

Recommended Posts

HELP!!!!!!

 

When I click on Reviews under Catalog I receive the following error:

 

Reviews

 

Products Rating Date Added Action

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 reviews_id, products_id, date_added, last_modified, reviews_rating from reviews order by date_added DESC limit -12, 12

 

[TEP STOP]

 

 

When I click on Newsletter Manager under Tools I receive the following error:

 

Newsletter Manager

 

Newsletters Size Module Sent Status Action

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 newsletters_id, title, length(content) as content_length, module, date_added, date_sent, status, locked from newsletters order by date_added desc limit -12, 12

 

[TEP STOP]

 

 

When I click on Specials under Catalog I receive the following error:

 

Specials

 

Products Products Price Status Action

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 p.products_id, pd.products_name, p.products_price, s.specials_id, s.specials_new_products_price, s.specials_date_added, s.specials_last_modified, s.expires_date, s.date_status_change, s.status from products p, specials s, products_description pd where p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = s.products_id order by pd.products_name limit -12, 12

 

[TEP STOP]

 

When I asked my host service, ace-net, I received this response:

 

You will get a MySQL query syntax error number 1064 when you incorrectly use a reserved word in your query such as "when" or "order".

 

MySQL has additional reserved words that you cannot use and the full list of them is at http://www.mysql.com/doc/en/Reserved_words.html.

You will have to contact the script developer concerning these errors.

 

What do I need to do to fix these errors?

 

Frustrated in Maryland :(

 

Donna aka Beadseller :unsure:

Link to comment
Share on other sites

A known issue of compatability with nysql 4.1

 

http://blogs.oscommerce.com/christian_lesc...owentry&eid=362

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...