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?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Marius Ursache (3563 || 3494)
\|/ ____ \|/
"@'/ ,. \`@"
/_| \__/ |_\
\__U_/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php