08-03-2011, 03:57 PM
|
#1 (permalink)
|
|
The Wanderer
Join Date: Feb 2008
Posts: 13
Thanks: 3
|
syntax error???
I have this code looking to check to make sure at least 1 checkbox is checked but i'm getting this error and not understanding where the error is.. help?
PHP Code:
If (empty($up == 2 && $app == 2 && $dep == 2 && $sold == 2)) {
$error=1;
$error_message="<p class=\"message invalid\"> Select At Least 1 Stage <span class=\"close\">X</span> </p>";
echo $error_message;
}
And here's the error:
Code:
Parse error: syntax error, unexpected T_IS_EQUAL, expecting ')'
|
|
|
|