Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Featured Products v1.3


Nev

Recommended Posts

I have installed this along side FreeCall V4.0 but I'm getting the following error when enabling the Featured Products.

 

1064 - You have an error in your SQL syntax near 'rand() DESC limit 6' at line 1

 

select p.products_id, p.products_image, p.products_tax_class_id, s.status as specstat, s.specials_new_products_price, p.products_price from products p left join specials s on p.products_id = s.products_id left join featured f on p.products_id = f.products_id where p.products_status = '1' and f.status = '1' order by rand() DESC limit 6

 

 

any ideas any one, please.

 

Nev :?

Link to comment
Share on other sites

After doing some testing it looks like the rand() is not support in my versions of mySQL. So will have to upgrade to 3.23.2 or change the statement.

 

Can any one suggest a replaced statement that will provide the same random effect.

 

Nev

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...