View Single Post
Old 03-19-2005, 10:48 AM   #6 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
is error reporting turned on? i mean, when you make errors, does it display the Warning message? it doesn't make sense to me if you are using the same auth.php script.

also, just some other tips, in PHP, you should use the operator || instead of the word OR. i guess if OR works, then it's fine, it's just more common to see the pipes. i.e.
PHP Code:
<?
if($i==|| $i==2){
  
// do this
}

// also, the and operator is &&
if($i==&& $b==2){
  
// do this
}
now, another way to complete the logic in your huge if statement, might be this:
PHP Code:
<?
// create your array of possibilities
$my_array = array(3,6,9,12,15,18,21,
                  
24,27,30,33,36,39,
                  
42,45,48,51,54,57,
                  
60,63,66,69,72,75,
                  
78,81,84,87,90,93,
                  
96,99);

if(
in_array($i,$my_array)){
  
// do something
}
?>
__________________
Mike
sde is offline   Reply With Quote