$hauf = array (0,0,0,0,0);
$ergebnis = array ("0:0","1:1","2:2","3:3","4:4","5:5");
$sql = mysql_query("SELECT * FROM spiele WHERE pkt = 1;"); // UNENTSCHIEDEN
while ($ds = mysql_fetch_object($sql)){
$heim = $ds -> heim;
$gast = $ds -> gast;
$ee = $ds -> ee;
$he = $ds -> he;
$pkt = $ds -> pkt;
$tpl = $ds -> tpl;
$tmin = $ds -> tmin;
$nr = $ds -> nr;
$art = $ds -> art;
$bem= $ds -> bem;
$bem2 = $ds -> bem2;
if ($tpl === "0" AND $tmin === "0") { // ............. 0:0
$hauf[0] = $hauf[0] + 1;
}
if ($tpl === "1" AND $tmin === "1") { //.............. 1:1
$hauf[1] = $hauf[1] + 1;
}
if ($tpl === "2" AND $tmin === "2") { //.............. 2:2
$hauf[2] = $hauf[2] + 1;
}
if ($tpl === "3" AND $tmin === "3") { //.............. 3:3
$hauf[3] = $hauf[3] + 1;
}
if ($tpl === "4" AND $tmin === "4") { //.............. 4:4
$hauf[4] = $hauf[4] + 1;
}
if ($tpl === "5" AND $tmin === "5") { //.............. 5:5
$hauf[5] = $hauf[5] + 1;
}
}
// ................. Ende SQL ...................................
?>
| Erg |
Anz |
Darstellung |
for ($x = 0; $x < 6; $x++){
$sterne[$x] = str_repeat("X", $hauf[$x]);
?>
|
|
|
}
mysql_close($dz);
?>