Hi. I have db table named tbl_categories. top 6 are parent categories. there is column named under_category_id. for eg. category id 1 is parent category and under_category_id 1 is sub category of parent category of category_id 1. Below is link to image of db table.
Now i want to show main categories follwed by sub categories. Like this