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 Link to comment https://forums.phpfreaks.com/topic/217088-unexpected-t_if-please-help/ 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 = ""; Link to comment https://forums.phpfreaks.com/topic/217088-unexpected-t_if-please-help/#findComment-1127467 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.