Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Featured Products -> Query Incorrect Error


waqas_punjabian

Recommended Posts

Posted

Hi all,

 

i m just new to osCommerce, well, i 've installed following contribution as per instructions:

 

Featured Products

 

Bynow the table 'Featured' was empty.

At the end when i moved to Admin area to add some products as featured products.

 

i 've found following Query Error in Admin's Featured Area:

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

select p.products_id, pd.products_name, s.featured_id, s.featured_date_added, s.featured_last_modified, s.expires_date, s.date_status_change, s.status from products p, featured 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 -20, 20

 

But when i entered a record in Featured table manually using phpMyAdmin.

 

The error removed. I think there isn't any check on null values on limit, or may be i am doing something wrong.

 

If the error is in contribution code, then please someone rectify the error and update contribution. Or else notify me what i am doing wrong.

 

regards

 

WAQAS

Archived

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

×
×
  • Create New...