Jump to content

Parse error: syntax error, unexpected T_VARIABLE ......ERROR???


cluce

Recommended Posts

 

 

Parse error: syntax error, unexpected T_VARIABLE in C:\www\vhosts\ran\authenticate.php5 on line 7

 

Here is my code..can someone tell me what the syntax error is???thx

 

//authenticate employee
//line 7 here---->       $val = "SELECT username, password FROM employees WHERE username = '" . $_SESSION['validate'] . "' AND password = sha1('"$_SESSION['password']"'.STR_PWSALT')";
        $auth = @mysqli_query($mysqli,$val)  or die(header("Location: error.html"));

//authenticate employee
$val = "SELECT username, password FROM employees WHERE username = '" . $_SESSION['validate'] . "' AND password = sha1('" . $_SESSION['password'] . STR_PWSALT . "')";
        $auth = mysqli_query($mysqli,$val)  or die(header("Location: error.html"));

More dots!

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.