RE: [PHP] Some questions about if and isset.

2005-01-31 Thread Jay Blanchard
[snip] ?php if (isset($variable)) { if ($variable $constant) { Execute this code if $variable is less than $constant } elseif ($variable $constant) { Execute this code if $variable is more than $constant } elseif ($variable

RE: [PHP] Some questions about if and isset.

2005-01-31 Thread Robinson, Matthew
Can we see some sample data? An example of what $variable and $constant are would help. A quick glance at the code I'd have: if (isset($variable) { if ($variable $contstant) { stuff } elseif ($variable $constant) { more

Re: [PHP] Some questions about if and isset.

2005-01-31 Thread Richard Lynch
Geir Anders Berge wrote: I'm sure that this code can be written more efficient, please tell me how, but that's not my problem. The problem is that when i run this script all lines are executed. I'm sure I'm doing something wrong, but can't find out just what. Okay, it's REALLY hard to see how