RE: [PHP] ++Alternate Colors From: Jason Murray (Jason.Murray <email protected>)
Date: 09/27/00

> Any good/easy way to Alternate Row Colors ?

while (not-at-last-row)
{
  if ($bgcolor == "white") { $bgcolor = "gray"; }
  elseif ($bgcolor == "gray") { $bgcolor = "gray"; }

  echo "<TR BGCOLOR='$bgcolor'>\n";
}

Jason

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>