cluce Posted June 12, 2008 Share Posted June 12, 2008 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")); Quote Link to comment Share on other sites More sharing options...
conker87 Posted June 12, 2008 Share Posted June 12, 2008 //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! 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.