Posted: Wed Dec 13, 2006 7:58 pm
Bear in mind that using Javascript to generate the Zebra table style will only work as long as the user has JS enabled.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Hello Did You Testd It? I Think It Would Workneel_basu wrote:look at the 1st post of yours on this topic
ReplaceOf That PostCode: Select all
echo "\t\t<td>$col_value</td>\n";
WithCode: Select all
$clr[]="red"; $clr[]="green"; $num=0; if($num==0) { echo "\t\t<td bgcolor=".$clr[0].">$col_value</td>\n"; $num = 1; } else { echo "\t\t<td bgcolor=".$clr[1].">$col_value</td>\n"; $num = 0; }