$result_single_data = mysql_fetch_assoc($single_doctor_data); ?> <br><br><br><td colspan="2" style="width: 200px;"><?php print_r($result_single_data); ?> </td> <?php } if (isset($_GET['get_doctor_id_for_shift'])) { ?> <td> Shift Name </td> <td> <select name="shift_id" onchange="get_time_slot(this.value)" > <option value=" ">Select Shift...</option> <?php $select_all_shift = $obj_view->select_all_shift(); while ($row1 = mysql_fetch_assoc($select_all_shift)) { ?> <option value="<?php echo $row1['shift_id']; ?> "><?php echo $row1['shift_name']; ?> </option> <?php } ?> </select> </td> <?php