Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

featured products sql error


jloyzaga

Recommended Posts

Posted

I get this error message - can you tell mje where to start?

1064 - You have an error in your SQL syntax near 'MAX_DISPLAY_FEATURED_PRODUCTS' 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 MAX_DISPLAY_FEATURED_PRODUCTS

 

[TEP STOP]

Posted

You need to set MAX_DISPLAY_FEATURED_PRODUCTS to a numeric value, e.g. 9. I'm not sure if that contribution does so in the configuration table or with a define. Perhaps something that got overlooked during the install?

 

Hth,

Matt

Posted

Actually,

 

It didn;t exist so I aaded it. I just loaded the site onto my local server and restored the backup and it didn't restore this record - thats weird coz it worked live. hmm

 

Anyway its ok now

 

Thanks

Archived

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

×
×
  • Create New...