Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199903

Re: [PHP3] displaying search results From: James Coates (jamesc <email protected>)
Date: 03/18/99

At 09:03 18/03/99 -0500, you wrote:
>Does anyone have a script that will display the results of a search in
>alternating colors; one row white the next light gray, ect,ect.

I've done it like this;

for ($count=0; $count<whatever; $count++) {
 if ($count%2) { $bg="#eeeeee"; } else { $bg="#ffffff"; }
 echo "<td bgcolor=\"$bg\">whatever</td>";
}

James.

-- 
------------------------------------------------------------------------------
James Coates			 		            http://www.c2.net/
Web Developer						    t: +44 1635 523700
c2net Europe Limited					    f: +44 1635 552529

-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev-list-admin <email protected>