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")); Link to comment https://forums.phpfreaks.com/topic/109932-parse-error-syntax-error-unexpected-t_variable-error/ 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! Link to comment https://forums.phpfreaks.com/topic/109932-parse-error-syntax-error-unexpected-t_variable-error/#findComment-564104 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.