Recursive Function for Nested Categories

Nested Categories over Drop Down Categories and its sub categories are always useful while developing simple to huge applications. Here is a simple php code to create multi-leveled nested categories on select box to those categories. CREATE TABLE `tb_category` ( `id` int(11) NOT NULL AUTO_INCREMENT, `pid` int(11) NOT NULL, `name` varchar(255) NOT NULL PRIMARY KEY … Read more