How can I have an alternating color rows in my php loop?
$num = mysql_num_rows($qPhysician);
$i=0;
while($i < $num)
{
echo "<tr>";
echo "<td>" . mysql_result($qPhysician,$i,"lastName") . "</td>";
echo "<td>" . mysql_result($qPhysician,$i,"firstName") . "</td>";
echo "</tr>";
$i++;
}
I have to omit the "<" and ">" for both "tr" and "td" because it wasn't allowed in this question. :)
thanks!