Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

You have an error in your SQL syntax


odracirjf

Recommended Posts

Posted

Hello ,

I have a Oscommerce web page with the following configuration:

 

WEBSERVER :

  • APACHE
  • DATABASE CLIENT VERSION 5.5.31
  • PHP EXTENSION MYSQLi
  • modular_ front_ page version : 1.4
  • oscommerce 2.3.3

 

When I select the "featured" option on the "scroller" The next message appears

 

 

 

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 ') order by rand() limit ' at line 13

 

select p.products_id, p.products_image, pd.products_name from products p join products_description pd on pd.products_id = p.products_id where p.products_status = '1' and pd.language_id = '2' and p.products_id in () order by rand() limit 20

I

 

Could you please help me?

Thank you very much!!

Posted

I'm guessing you haven't flagged any featured items.

 

the scroller you are referring too is probably a modular front page module ?

if so, better find that thread, and post there

 

edit: on second thought, don't you just have to supply a comma separated list of product ids in the admin for that ?

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

  • 2 weeks later...
Posted

Hello Carine!

Thank you for the response , I, using the modular front page ...... I have selected more than 10 products in the featured products module. the featured products is not empty.

Posted

You should post in the support thread for that contribution, Jim @@kymation is really good in supporting his contributions ...

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Archived

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

×
×
  • Create New...