<?
SELECT * FROM ".$db_prefix."rezultatai WHERE komanda='$komanda' ORDER BY '$kiek'
$sql = dbquery("SELECT * FROM ".$db_prefix."rezultatai WHERE komanda1='$komanda' OR komanda2='$komanda' ORDER BY '$kiek'");
while ($data =dbarray($sql)){
echo $data['komanda1'].$data['rezultatas1'].$data['rezultatas2']$data['komanda2'];
?>