2020-03-21 | 2:00 pm | 3:00 pm 2020-03-22 | 2:00:pm #### $SQL = "SELECT * from $reservations_table where approved!='declined' and date > '$dateadded2' OR (date = '$dateadded2' and militaryendtime > '$hourmin' and approved!='declined' and approved!='cancelled') order by date asc, militarytime asc"; &Do_SQL; $startcount = ($currentpage - 1) * $titlesperpage + 1; $stopcount = $currentpage * $titlesperpage; $current_count = 0; while (($pointer = $sth->fetchrow_hashref) && ($current_count <= $stopcount)){ $current_count++; if ($current_count >= $startcount && $current_count <= $stopcount) { print < $date $time_lc - $endtime_lc $area $unit } }