I have a category table
id name parent
where parent is which category the currect cat is under. Then I have products table
id name catid
where catid links to the category table.
What I need to do is go down each category display any products along the way.
cat
subcat
subcat
subcat
products
subcat
products
and so on. How do I go about doing this, I can do it for first level subcats but don't understand how to do it recursivley.
Any help would be much appreciated as I am completly stuck on this one!
Cheers
Tim
id name parent
where parent is which category the currect cat is under. Then I have products table
id name catid
where catid links to the category table.
What I need to do is go down each category display any products along the way.
cat
subcat
subcat
subcat
products
subcat
products
and so on. How do I go about doing this, I can do it for first level subcats but don't understand how to do it recursivley.
Any help would be much appreciated as I am completly stuck on this one!
Cheers
Tim