Hello everyone!
I've been able to successfully implement this bit of php that alters the color of tables for each row, but I am having a difficult time implementing it on our current web app. I am thinking I have misplaced something because the output shows one grey row where all the rest are green. I am thinking the variable is not able to loop for some knuckle-headed reason.
Any directon provided is greatly appreciated.
<?php
for ($j = 0; $j < mysql_num_rows($result); $j++)
$i=0;
while ($i < $num) {
$f1=mysql_result($result,$i,"last_name");
$f2=mysql_result($result,$i,"first_name");
...blah blah blah
This is the first part where the artihmatic is established working in conjunction $j changes the $bg_color variable and i$ communicates with mysql to display the data.
$f16=mysql_result($result,$i,"texting");
$f17=mysql_result($result,$i,"id");
if ($j % 2)
{
$bg_color="#EEEEEE";
}
else
{
$bg_color="#E0E0E0";
}
?>
<tr bgcolor="'.$bg_color.'">
<td width="15">  <font face="Arial, Helvetica, sans-serif"><?php echo $f1; ?></font></td>
<td width="15"> <font face="Arial, Helvetica, sans-serif"><?php echo $f2; ?></font></td>
Do I need to include a PHP tag in the <tr>?