hey  .. im trying to write a login script and keep receiving this :
Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/a3866796/public_html/logins.php on line [B]37 error
ive proof read that part of the script and cant see whats gone wrong  any help appreciated
PHP Code:
if($result){ } else { $error_message = "Error Logging On"; } if ($num_rows > 0) { session_start(); $_SESSION['login']] = "1"; header ("Location: Index.htm"); } else { $error_message="Invalid Login"; session_start(); $_SESSION['login'] = "; <<< line 37
$error_message = "Invalid Logon";
Last edited by chrishirst; 12-14-2009 at 05:41 PM..
|