$sql = dbquery("SELECT * FROM ".$db_prefix."rezultatai WHERE komanda1='$komanda' OR komanda2='$komanda' ORDE BY '$kiek'");
while ($data =dbarray($sql)){ echo $data['komanda1'].$data['rezas1'].$data['rezas2']$data['komanda2'];