jarv Posted October 28, 2010 Share Posted October 28, 2010 I have written an IF statement: $Townsearch = "" if ($Townsearch != "") { $Townsearch = $_REQUEST['rsTown']; list($Town, $County) = split('[,]', $Townsearch); } and I get the error: Parse error: syntax error, unexpected T_IF in D:\retroandvintage.co.uk\wwwroot\main.php on line 7 Quote Link to comment Share on other sites More sharing options...
Anti-Moronic Posted October 28, 2010 Share Posted October 28, 2010 $Townsearch = "" should have end of line character ; $Townsearch = ""; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.