Live Chat Software by IXXO |
How can I find all products from one category using mysql?
Posted by Michael G.K on 30 August 2008 05:17 AM
|
|
There are 3 main tables containing information about products and categories. 1) products – there is
pid field (internal
product id), and cid – primary product's category id To select all products from a category run this sql query: If you also would like to select ALL products in NESTED categories of a
parent category, you have to change this query just a bit – add in WHERE
statement subcategories ids you need: | |
|