My mysqli class is here. https://github.com/joshcam/PHP-MySQLi-Database-Class
I created categories table like :
Some notes.
If the row cat_parent == 0 it means top level category.
Also, cat_status == 0 that item, must be in the tree.
Now, i want to list them like a category tree ? Or want to use in select box with depth.
Could anyone give me an example please.
NOTE
Also tried this advice http://forums.codewalkers.com/php-coding-7/unlimited-infinite-levels-depths-of-categories-with-php-and-mysql-1087307.html but someone said this is worst coding.
Thank you.