Jump to content

[SOLVED] syntax unexpected if error, i cant see the problem...


jesushax

Recommended Posts

hi all below is code which gave me a syntax error but i cant see where the error is

 

i got

 

Parse error: syntax error, unexpected T_IF in C:\admin\vacancies\edit_vacancy.php on line 50

which is somewhere in the below snippet

 

can anyone help me out?

 

Cheers

 

$ESQL = mysql_query("SELECT `ID`,`City`,`Cons`,`Ref` FROM `tblVacancies` WHERE `Ref`='$Ref'") or die(mysql_error());
$error = mysql_fetch_array(ESQL);
if ($error["Cons"] !="1" || $error["Cons"] !="1") {
header("Location: /admin/vacancies/edit_vacancy.php?ID=".$error["ID"]."&action=error1");
} elseif (empty($error["Ref"])) {
header("Location: /admin/vacancies/edit_vacancy.php?ID=".$error["ID"]."&action=error2");
} else {
header("Location: /admin/vacancies/edit_vac_list.php?CAT=$Cat");
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.