View Single Post
  #3  
Old 07-12-2005, 06:51 AM
  ETInteractive.com's Avatar 
ETInteractive.com ETInteractive.com is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 747
 

Default

select * from xcart_products a, xcart_products_categories b
where a.forsale = 'Y'
and a.avail > 0
and a.productid = b.productid
and b.categoryid = '123'
order by Rand() limit 5


you need to use "xcart_product_categories" table, not categories.
__________________
ETInteractive.com
X-Cart 3.5.x
Reply With Quote