My code keeps failing over after the first line of this code is executed.
I have added brackets, however the code still falls over.
Does anyone have any ideas what is wrong?
Error I am getting is
Parse error: parse error, unexpected T_IF in d:\web\result.php line 142
if($title!= "")
$sql = "SELECT jobid, date, title, description, location, industry, salary FROM job WHERE title='".$jobid."'"
if($sector!= "")
$sql_where .= " AND industry = '$sector'";
if($location!= "")
$sql_where .= " AND location = '$location'";
$limit_sql = " LIMIT ".$start.",".$pagelimit;
$sql = $sql.$sql_where.$limit_sql;