if($i++ % 2)
{
print '<tr class="pink">';
}
else
{
print '<tr class="wight">';
}
printf("<td>%s" . "</td><td>1</td><td>1</td></tr>", $row["title"]);
printf("<tr><td><font size=\"-1\">%s" . "</font></td><td></td><td></td></tr>", $row["about"]);
}
Im refering to this bit it only changes the colour of the top printf and not the bottom.
if($i++ % 2)
{
print '<tr class="pink">';
}
else
{
print '<tr class="wight">';
}
printf("<td>%s" . "</td><td>1</td><td>1</td></tr>", $row["title"]);
if($i++ % 2)
{
print '<tr class="pink">';
}
else
{
print '<tr class="wight">';
}
printf("<td><font size=\"-1\">%s" . "</font></td><td></td><td></td></tr>", $row["about"]);
}
If i do it like above it only colors the bottom row and not both rows.