http://mbn.dk/PHP/tips/
Her står jo lige netop hvad du har brug for!
--
Michael Bested
michael@bested.nu
www.bested.nu
"Tonni Aagesen" <newsSPAM_ME_NOTpost@e-box.dk> skrev i en meddelelse
news:XAOB6.37959$o4.2927814@news010.worldonline.dk...
> Hej NG,
>
> Hvordan får man to farver til at skifte hver anden gang med:
>
> mysql_connect ("host", "bruger", "passwd");
> $result = mysql_db_query ("database","SELECT * FROM tabel");
>
> while ($row = mysql_fetch_array ($result)) {
> echo " <tr>\n";
> echo " <td bgcolor='#000000'>$row["1"]</td>\n";
> echo " <td bgcolor='#000000'>$row["2"]</td>\n";
> echo " <td bgcolor='#000000'>$row["3"]</td>\n";
> echo " <tr>\n";
> }
>
> Mvh
> Tonni Aagesen
>
>
>