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