<tr> <th><?php $count = 0; echo "S.No."; ?> </th> <th>Specimen Name</th> <th>Specimen ID</th> <th>Patient Name</th> <th>Patient ID</th> <th>Date of Registration</th> </tr> </thead> <tbody> <?php $all_entries = $ust->getSpecimenRegLog($user_id, $lab_config_id, $date_from, $date_to); foreach ($all_entries as $entry) { ?> <tr> <td> <?php $count++; echo $count; ?> </td> <td> <?php $tname = $entry->getTypeName(); if ($tname != '') { echo $tname;