mysql_connect("localhost","illusion_lloyd","world");
mysql_select_db("illusion_vexatomic");
$result = mysql_query("select * from tag order by id desc");
while($r=mysql_fetch_array($result))
{
$name=$r["name"];
$message=$r["message"];
$site=$r["site"];
$id=$r["id"];
$row = 400;
$x = 1;
while ($x <= $row) {
if($id%2): $color = "#FFFFFF"; else: $color = "#000000"; endif;
echo "<CENTER><FONT COLOR=$color>
+ $name +<BR><I>$site</I><BR>$message<BR>--------------<BR></font><br><meta http-equiv='Refresh' content='30; url=tagger.php'>";
}
?>
-----------------
Ok, so I want posts that enter my shoutbox to be in alternating font colours from row to row of the mysql database. but i don't want to make a table in the shoutbox if i can help it.
Any help?
ta in advance
