Mailinglisten-Archive |
Hi,
etwa so?
<?
print "<html><head></head><body><table border>";
for ($i=3D1;$i<100;$i++) {
if ($i % 2 =3D=3D 0) {
$colour=3D"red";
} else {=20
$colour=3D"blue";
}
print "<tr bgcolor=3D$colour><td>Zeile " .
$i . "</td><tr>";
}
print "</table></body></html>";
?>
> -----Urspr=FCngliche Nachricht-----
> Von: Michael Paffrath [SMTP:paffrath_(at)_fatmedia.de]
> Gesendet am: Donnerstag, 20. September 2001 15:59
> An: php Mailingliste
> Betreff: [php] zweifarbige tabelle
>=20
> hallo!
>=20
> ich baue in einer for schleife eine tabelle, und m=F6chte, dass jede =
die
> zeilen abwechselnde farben haben.
>=20
> hat einer =B4ne idee wie ich da dran gehen soll?
>=20
php::bar PHP Wiki - Listenarchive