I'm looking for a php function or mysql stored procedure which outputs the following:
1: category 1 > category 2 > category 3 > category 4
2: category 1 > category 2 > category 3 > category 4
...
n: category n > category o > category p > category p
so basically i want last level category id and text which display all parent categories in hierarchy as above. I have the following table: categories(id,title,level,parentid); level increases with category depth.
I tried much on google but could not find a solution. can you please help me?
thanks -Navi