Thread: syntax error???
View Single Post
Old 08-03-2011, 03:57 PM   #1 (permalink)
gillweb
The Wanderer
 
Join Date: Feb 2008
Posts: 13
Thanks: 3
gillweb is on a distinguished road
Default 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 == && $app == && $dep == && $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 ')'
gillweb is offline  
Reply With Quote