hi i have a dynamic table.i want to rows in alternative colours
$nr0 displays the no of rows fetched
while ($row=mysql_fetch_array($rs))
{
/////////////////////////////////////////////////////////////////////////////////
//This is used to show the serial number on the page as well as to count it up
//so that we can get the next page's starting row number when it exits the while
//loop after fullfilling the above SQL criteria.
/////////////////////////////////////////////////////////////////////////////////
$cps = $cps +1;
if($nr0 %2 == 0)
{
echo "<tr>";
echo "<td>";
echo "<table bgcolor='#ffffff' border='1'>";
echo "<tr><td><font face='verdana' size=1><strong>Resume Title : </strong></font><a href='myresume1.php?id=".$row[0]."'>".$row[2]."</td></tr>";
echo "<tr><td><font face='verdana' size=1><strong>Industry Type: </strong></font>".$row[4]."</td><td><font face='verdana' size=1><strong>Career Level: </strong></font>".$row[5]."</td></tr>";
echo "</td>";
echo "</tr>";
echo "</table>";
}
else
{
echo "<tr>";
echo"<td>";
echo "<table bgcolor='#66CC66' border='1'>";
echo "<tr><td><font face='verdana' size=1><strong>Resume Title : </strong></font><a href='myresume1.php?id=".$row[0]."'>".$row[2]."</td></tr>";
echo "<tr><td><font face='verdana' size=1><strong>Industry Type: </strong></font>".$row[4]."</td><td><font face='verdana' size=1><strong>Career Level: </strong></font>".$row[5]."</td></tr>";
echo "</td>";
echo "</tr>";
echo "</table>";}
}
it is not working......it is just printing the else part...........