<div class="container table-position"> <table class="table test_table"> <thead> <tr class="row_color"> <th class="align_center">SLNO</th> <th class="align_center">Test Name</th> <th class="align_center">Parameter Name</th> <th class="align_center">Type</th> <th class="align_center">Unit</th> <th class="align_center">Format</th> <th class="align_center">Action</th> </tr> </thead> <tbody> <?php $data = $obj->testselectfunction(); $i = 1; foreach ($data as $eachrecord) { ?> <tr class="align_center delete_color"> <td class="test_id"><?php echo $i; ?> </td> <input type="hidden" value="<?php echo $eachrecord['test_attribute_id']; ?> " id="test_attribute_id"> <td><?php echo $eachrecord['test_name']; ?>