[PHP] Re: If statement question

2006-06-26 Thread Adam Zey
Alex Major wrote: Hi list. Basically, I'm still learning new things about php and I was wondering if things inside an if statement get 'looked at' by a script if the condition is false. For example, would this mysql query get executed if $number = 0 ? If ($number == 1) { mysql_query($blah) }

[PHP] Re: If statement question...

2004-10-10 Thread M. Sokolewicz
M. Sokolewicz wrote: Gh wrote: I would like to know how I can code the the following conditional check if the $_GET['api'] does not exist, or is either set and has no length or is set and is not an integer. I am drawing a blank on the if statement to use I meant to say the following (notice

[PHP] Re: If statement question...

2004-10-10 Thread M. Sokolewicz
Gh wrote: I would like to know how I can code the the following conditional check if the $_GET['api'] does not exist, or is either set and has no length or is set and is not an integer. I am drawing a blank on the if statement to use if(!isset($_GET['api'] || strlen($_GET['api']) == 0 || !