0) { $row=@mysqli_fetch_array($result); } $sql_for_treatment="select * from guest_treatment where appointment_id='".$_REQUEST['appointmentId']."'"; $result_for_treatment =@mysqli_query($conn,$sql_for_treatment); $num_rows_treatment=@mysqli_num_rows($result_for_treatment); //echo $row['emp_id']; // echo "shub".$num_rows_treatment; } ?>