prefix ."apt_appointments"; $appearence_table = $wpdb->prefix."apt_appearence"; $settings_table = $wpdb->prefix."apt_settings"; $staff_table = $wpdb->prefix."apt_staff"; $holidays_table = $wpdb->prefix.'apt_holidays'; $staff_id= $_REQUEST['staff_member'] ; $current_url= $_REQUEST['current_url'] ; $service_id= $_REQUEST['service'] ; $appointment_date= $_REQUEST['apt_dates']; $current_time= $_REQUEST['current_time'] ; $current_date= date("m/d/Y"); $settings_time_slots = $wpdb->get_col( "SELECT time_slots from $settings_table" ); $time_slots = $settings_time_slots[0]; $settings_custom_slot = $wpdb->get_col( "SELECT custom_slot from $settings_table" ); $custom_slot = $settings_custom_slot[0]; $selected_date= $_REQUEST['date_label'] ; $AppointmentDate = date("Y-m-d", strtotime($_REQUEST['apt_dates'])); $weekday = date('l', strtotime($AppointmentDate)); $staff_details = $wpdb->get_results( "SELECT * from $wpdb->prefix"."apt_staff where id='$staff_id'"); foreach($staff_details as $staff_detail){ $staff_member_name= $staff_detail->staff_member_name; ?>