שלום לכולם,
יש לי לולאה שקוראת מכלשהי טבלה 4 דברים.
PHP קוד:
<?php
?>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="3" class="forumsg">
<?
$select_comments = mysql_query("SELECT * FROM `topics` order by tid desc LIMIT 4");
while($row = mysql_fetch_array($select_comments)){
$title = $row['title'];
$poster = $row['last_poster_name'];
$views = $row['views'];
$tid = $row['tid'];
$lpid = $row['last_poster_id'];
?>
<tr>
<td align="left"><?=$views?></td>
<td>|</td>
<td align="right"><a href="http://www.startzero.net/scary/forum/index.php?showtopic=<?=$tid?>" target="_blank"><u><b><font color="#bb1111"><?=$title?></font></b></u></a><br /><a href="http://www.startzero.net/scary/forum/index.php?showuser=<?=$lpid?>" target="_blank"><font size="1" color="white" style="text-decoration:none;"><?=$poster?></font></a></td>
</tr>
<?
}
?>
</table>
<?
?>
עכשיו אני רוצה שזה יחליף צבע בכל סיום לולאה
זאת אומרת:
פלט שחור
פלט אדום
פלט שחור
פלט אדום
תודה רבה לעוזרים.