<?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');
}
?>
In this code I'm getting "Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\phpmysimplelogin\loginproc.php on line 15" this error. Where am I doing wrong?