Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 199912

Re: [PHP4BETA] quick check. From: Allen Lee (neo <email protected>)
Date: 12/13/99

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>