query($Query); $mod_date = date('Y-m-d', strtotime($prodid)); $mysql_insert_id= mysql_insert_id(); $app_info = date('d-m-Y', strtotime($prodid)).' : '.date('l', strtotime($prodid)).' : '; //echo "select * from tbl_doctor_appointment_office where date = '$prodid'"; $get_appt = mysqli_query($conn, "select * from tbl_doctor_appointment_office where id = '$time_id[1]'"); $get_apps = mysqli_fetch_array($get_appt, MYSQLI_ASSOC); if($get_apps['from_min'] == '0'){ $from_min = '00'; }else{ $from_min = $get_apps['from_min']; } if($get_apps['to_min'] == '0'){ $to_min = '00'; }else{ $to_min = $get_apps['to_min']; } $schedule=$get_apps['from_hour'].'.'.$from_min.' '.$get_apps['from_sta'].' - '.$get_apps['to_hour'].'.'.$to_min.' '.$get_apps['to_sta']; sms_api($name, $app_info, $schedule, $mobile); sleep(5); $flag="sucess"; header("Location:print_order_date_1.php"); } ?>
Success! Data Added Sucessfully.
Danger! Already Exists.
                   
'; echo''; echo''; } else { echo''; echo''; } ?>