Witam serdecznie

Mam taka funkcje
<?php
function getNextGame1() {
global $dbaseMatchData, $SID, $Next_Match,$No_Matches_Scheduled,$lid; global $dbase, $globalTeams, $dbaseLids;
$todaysdate = date("Y-m-d H:i:s");
$query = "select * from $dbaseMatchData inner join $dbaseLids on $dbaseMatchData.lid=
$dbaseLids.lid where matchdate>='$todaysdate' order by matchdate LIMIT 5";
$result = $dbase->query($query);
if ($count == 0) {
$nextmatch = "<b>$No_Matches_Scheduled</b>";
} else {
$matchid = $line["matchid"];
$matchleague = $line["title"];
$matchdate = $line["matchdate"];
$textdate = convertDatetimeToScreenDate($matchdate);
$nextmatch = "<div style='widht= 580px;border= 2px dashed red; background-color= #e0f8b0;'><center><table><tr><td>$matchleague</td><td>$hometeam</td><td>-</td><td>$awayteam</td> <td>$textdate</td></tr></table></center> </a></b></div>";
}
return $nextmatch;
}
?>
Wyświetla jeden wynik (mecz) tylko ...
Mam prośbe do ekspertów z tego forum
Czy można zrobić i w jaki sposób by wyświetlało np . 5 rekordów (meczy )
Prosze o pomoc...
Ten post edytował poki2003 24.10.2006, 13:24:48