I am working on a website and that website and want to display categories > sub-categories > sub-sub categories.

Category is showing. But i wanna display sub-category too.

Here is category code

        <option>Select Category</option>
              $query="select * from mydb";
        <option value="<?php echo $r['id']?>"><?php echo $r['title']?></option>                                    
  <?php } ?>

Showing Like this & Wanna Displa Like this

Member Avatar

OK one's a select, the other a set of checkbox es. We need to know how your data is arranged in your db.