fetch_data($table_name10, $fields10, $where10, $order10, $limit10, $desc10, $limitBegin10, $monitoring10); if($query10) { foreach($query10 as $key=>$departmentData) { $table_name = "tbl_doctor d, tbl_department dp"; $fields = "d.*,dp.deptName"; $where = "d.deptId='".$departmentData['deptName']."' group by d.docName"; $order = "d.docId"; $limit = ""; $desc = "0"; $limitBegin = "0"; $monitoring = false; $query = $database->fetch_data($table_name, $fields, $where, $order, $limit, $desc, $limitBegin, $monitoring); $countRows = $database->count_rows($table_name, $where, $fields); if($countRows>0) { ?>

Doctor's Name
Monday
Tuesday
Wednesday
Thursday
Friday
Satuday
Sunday
$doctorData) { echo '
'.$doctorData['docName'].'
'.$doctorData['mon'].'
'.$doctorData['tue'].'
'.$doctorData['wed'].'
'.$doctorData['thu'].'
'.$doctorData['fri'].'
'.$doctorData['sat'].'
'.$doctorData['sun'].'
'; } ?>

 

Sorry, The name of Doctor not found

'; ?>