...

View Full Version : help with for()



king2k5
11-18-2006, 05:58 PM
Hi, i want something to occur everytime my variable returns an UN-even number..


for($i="0";$i<$howmany;$i++){

How do i get


if($i == UNEVEN NUMBER){

thanks

vinyl-junkie
11-18-2006, 07:29 PM
if(($i % 2) != 0){

king2k5
11-18-2006, 07:43 PM
thank you! that works perfectly :D



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum