Page 2 of 2

Posted: Wed Dec 13, 2006 7:58 pm
by RobertGonzalez
Bear in mind that using Javascript to generate the Zebra table style will only work as long as the user has JS enabled.

Posted: Wed Dec 13, 2006 11:35 pm
by neel_basu
neel_basu wrote:look at the 1st post of yours on this topic
Replace

Code: Select all

echo "\t\t<td>$col_value</td>\n";
Of That Post
With

Code: 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;
  }
Hello Did You Testd It? I Think It Would Work