<?php
session_start();
include('config.inc');
$login = mysqli_query("SELECT * FROM user WHERE (username = '" . mysqli_real_escape_string($_POST['username']) . ['password']) and mysqli_real_escape_string($_POST['password']) . "');
if (mysql_num_rows($login) == 1){
$_SESSION('username') = $_POST('username');
header('Location: index.html');
}
else{
header('Location: index.php');
}
?>
在此代码中我得到&#34;解析错误:语法错误,第15行和第34行的C:\ xampp \ htdocs \ phpmysimplelogin \ loginproc.php中的文件意外结束;这个错误。我在哪里做错了?