i have a mysql table which is
categoryid
categoryname
parentid
now the senario is that i want to grab all categoryid of a parentid ...
like
if i put parent id = 12
so that parent id has now become root id and it should get all the sub sub categories of that parent id ... thanks for ur help in advance