CURRENT_TIMESTAMP( ) and origin = a.code and destination = b.code order by 1,2 "; $j=0; mysql_db_query($dbname, "SET NAMES cp1251", $link); $result = mysql_db_query($dbname, $sql_text, $link); while ($obj = mysql_fetch_object($result)) { $schedule[$j]=$obj; $j++; } $title = $text_55[$lang].$arr_name_rod[$domain]; ?> <? print $title; ?> '; print "

".$title."

"; $town_o = ''; //print ""; for($i = 0; $i < count($schedule); $i++) { if ($town_o <> $schedule[$i]->origin_name) print "
".$schedule[$i]->origin_name."
"; print $text_54[$lang]." ".$schedule[$i]->origin_name." - ".$schedule[$i]->destination_name.", ".$text_56[$lang].$schedule[$i]->origin." - ".$schedule[$i]->destination." ".$arr_iata[$domain].": ". "origin."&destination=".$schedule[$i]->destination.">".$schedule[$i]->origin_name." - ".$schedule[$i]->destination_name.""; print "
"; $town_o = $schedule[$i]->origin_name; } //print "
"; print '

'; include('footer.php'); ?>