Re: [PHP4BETA] quick check.
| From: | Allen Lee | Date: | Mon, 13 Dec 1999 17:02:35 +0000 |
| Subject: | Re: [PHP4BETA] quick check. | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-7860@lists.php.net to get a copy of this message | ||
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@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net
>