<?php
$start_date = $this->input->post('start_date');
$filtered_students = $this->home_model->getFilterStudents();
$fil_std_count = $filtered_students->num_rows();
$filtered_student_ids = $this->home_model->getFilterStudentsIds();
$st_time = strtotime("09:00 am");
for ($i = 0; $i < $fil_std_count; $i++)
{
$end_time = date("H:i:s a", strtotime('+20 minutes', $st_time));
if (strtotime($end_time) > (strtotime("01:00 pm")))
{
$st_time = strtotime("02:00 pm");
$end_time = date("H:i:s a", strtotime('+20 minutes', $st_time));
$filtered_students = $this->home_model->insert_appointment_schedule(date("H:i:s a", ($st_time)), $end_time, $filtered_student_ids[$i]->applicant_id, $start_date);
$st_time = strtotime($end_time);
}
else if (strtotime($end_time) >= strtotime("04:00 pm"))
{
$start_date=date('Y-m-d', strtotime($start_date. ' + 1 days'));
$st_time = strtotime("09:00 am");
$end_time = date("H:i:s a", strtotime('+20 minutes', $st_time));
$filtered_students = $this->home_model->insert_appointment_schedule(date("H:i:s a", ($st_time)), $end_time, $filtered_student_ids[$i]->applicant_id, $start_date);
$st_time = strtotime($end_time);
}
- Output for 5.4.1 - 5.4.45, 5.5.24 - 5.5.30, 5.6.8 - 5.6.14
- Parse error: syntax error, unexpected end of file in /in/VKQur on line 27
Process exited with code 255.
preferences:
185.61 ms | 1395 KiB | 65 Q