er. psuedo code
$counter=0
while (not done all table)
{
$counter++;
if (counter is odd)
{echo 'black table line';}
else
{echo 'white table line';}
}
see? do you see?
(
rob,
Mon 25 Feb 2002, 11:19,
archived)
Nice fast way of
figuring out if a number is odd or even:
if ( number & 1 )
{
/* Number is odd */
} else {
/* Number is even */
}
(thats C, but should be easy to convert to whatever language you want. Never done PHP myself...)
(
Lumpbucket tekcubpmuL,
Mon 25 Feb 2002, 11:21,
archived)