$result = dbquery("SELECT ga_home_score,ga_away_score FROM lentele ");
while($row=dbarray($result)) {
if ($row['ga_home_score'] > $row['ga_away_score']) $c = $row['ga_home_score']-$row['ga_away_score']; elseif ($row['ga_home_score']==$row['ga_away_score']) $c="lygiosios"; else $c = $row['ga_away_score']-$row['ga_home_score'];
echo "$c";
}