prepare('SELECT time_slot_programs_ID,Time_Slot_ID, Time_Slot, Time_From, Time_To FROM time_slot_programs WHERE time_slot_programs_ID = ?');
$stmt->bind_param('s',$decrypted_Time_Slot_ID);
$stmt->execute();
$result = $stmt->get_result();
$count =$result->num_rows;
$row = $result->fetch_assoc();
$time_slot_programs_ID = $row["time_slot_programs_ID"];
$Time_Slot_ID = $row["Time_Slot_ID"];
$Time_Slot = $row["Time_Slot"];
$_SESSION['Time_Slot'] = $Time_Slot;
//$myArrays = explode(',', $row_ns['Time_Slot']);
//echo $myArrays[0];
//echo $myArrays[1];
$Time_From = $row["Time_From"];
$Time_To = $row["Time_To"];
}else{
set_flash_msg('The time you are trying to open is not exit!', 'warning');
header('Location: addcoursetime.php');
exit();
}
?>