$sql22="SELECT * FROM train_times WHERE `lineno` = $now_line_no AND `trainno` = $c AND dirId = 'f' AND CAST(arrival as time) >= '06:00:00' AND CAST(arrival as time) < '18:00:00' ORDER BY arrival ";
$sql22="SELECT * FROM train_times WHERE `lineno` = $now_line_no AND `trainno` = $c AND dirId = 'f' AND CAST(arrival as time) >= '06:00:00' AND CAST(arrival as time) < '18:00:00' ORDER BY arrival ";
$sql22="SELECT * FROM train_times WHERE `lineno` = $now_line_no AND `trainno` = $c AND dirId = 'f' AND CAST(arrival as time) >= '06:00:00' AND CAST(arrival as time) < '18:00:00' ORDER BY arrival ";