multiple operators
Posted: Thu Jun 27, 2002 10:54 am
I'm not sure what the exact command is, but I want the designated field to be a number between 1 and 10, so it can't be over 10, nor can it be less than or equal to 0, here is what I have:
is the "or" statement the way to go abotu this or do I have to do something else? and should I have parenthesis all after the 0 like i do or like this
Code: Select all
if (strln($teaching_importance >10 or <=0)) {
$error .="You must enter a value between 1 and 10 for teaching importance.<br>";
)is the "or" statement the way to go abotu this or do I have to do something else? and should I have parenthesis all after the 0 like i do or like this
Code: Select all
if (strln($teaching_importance) >10 or <=0) (
$error .="You must enter a value between 1 and 10 for teaching importance.<br>";
)