Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

1064 - You have an error in your SQL syntax


Guest

Recommended Posts

Posted

Can some one give me some advice on following error message

i have just tried to intsal random images which was found on a previous post

 

http://www.oscommerce.com/forums/index.php?sho...l=random+images

 

i keep getting this messgae come up on other pages apart from home page

 

 

here is message i keep getting driving me nuts atm :blink:

 

any help would be appreciated and any pointers to a contribution that may be able to help

 

many thanks

Posted

sorry forgot to add error message

 

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

 

select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name, if(s.status, s.specials_new_products_price, p.products_price) as products_price from products p left join specials s on p.products_id = s.products_id, products_description pd, products_to_categories p2c, categories c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '35' and p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '1' order by RAND () limit 15

 

[TEP STOP]

Posted

theres no space between RAND and () ... so it should be RAND()

Posted
theres no space between RAND and () ... so it should be RAND()

 

 

Thanks for that slav just what i needed a simple problem that looking at all day i overlooked

 

thanks again

 

craftyhobbies

Archived

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

×
×
  • Create New...