php4-beta | 199912
Date: 12/13/99
- Next message: Patrick Lacson: "[PHP4BETA] Java Support"
- Previous message: Allen Lee: "[PHP4BETA] automated POST"
- In reply to: Michael Andrewes: "[PHP4BETA] quick check."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I use the following to alternate between colors.
Maybe it will help you with odd-even:
while($info = mysql_fetch_array($result)) {
if(($x++ & 1) == 0) $color = "#ccffcc";
else $color = "#ffffff";
On Mon, 13 Dec 1999, Michael Andrewes wrote:
> totally off reference to the beta, but to do with the list I'm on at the
> moment,
> how would I check of an odd/even number?
> eg, can I divide by two and can php check for a decimal etc?
>
> Michael Andrewes
> BiS
> --
> It said "Requires Windows 95 or better". So I installed Linux...
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
> For additional commands, e-mail: php4beta-help <email protected>
> To contact the list administrators, e-mail: php4beta-admin <email protected>
>
-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: Patrick Lacson: "[PHP4BETA] Java Support"
- Previous message: Allen Lee: "[PHP4BETA] automated POST"
- In reply to: Michael Andrewes: "[PHP4BETA] quick check."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

