<div class="row table-responsive"> <table class="table table-bordered table-hover"> <thead > <tr class="info "> <th>Name </th> <th>Number of brands</th> <th>Status</th> <th>Action</th> </tr> </thead> <tbody> <?php $list = array(); $list = $products->viewAllCat(); while ($row = mysqli_fetch_array($list)) { ?> <tr> <td> <?php echo $row["name"]; ?> <label class=" pull-right"><a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse<?php echo $row['id']; ?> " aria-expanded="true" aria-controls="collapse<?php echo $row['id']; ?> ">+</a></label></td>