if(($i % 2)==0)
{
$bg_color = $bg_color1;
}
else
{
$bg_color = $bg_color2;
}
$i++;
Craig a écrit :
I am trying to write an if statement that says if the value $foo is
divisible by 2 then echo text
i have tried mod but it isnt recognised
any ideas?
On Tuesday 30 April 2002 16:05, Marius Ursache wrote:
if(($i % 2)==0)
Or simply:
if ($i % 2)
--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design Hosting * Internet Intranet Applications Development *
/*
To thine own self
if (($foo % 2) == 0)
{
echo text;
}
Neil
Craig wrote:
*
This Message Was Virus Checked With : SAVI 3.54 Feb 2002
Last Updated 24th April 2002
what e-mail client do you use jason?
i like that are fortunes in your signature. i supose that they are
automaticly set...
Jason Wong a écrit :
On Tuesday 30 April 2002 16:05, Marius Ursache wrote:
if(($i % 2)==0)
Or simply:
if ($i % 2)
--
Jason Wong - Gremlins Associates -
»Craig« sagte am 2002-04-30 um 09:00:33 +0100 :
I am trying to write an if statement that says if the value $foo is
divisible by 2 then echo text
i have tried mod but it isnt recognised
if ($foo % 2){
echo foo is divisible by 2;
} else {
echo it is not;
}
Alexander Skwar
--
5 matches
Mail list logo