You are not logged in. Login or Signup
Home » Messageboard » XXX » Message 26786 (Thread)

# 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?
(, 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...)
(, Mon 25 Feb 2002, 11:21, archived)