I am having problems logging in to php. is says Notice: Undefined index: log in.. i tried fixing it on my own but it just got worst T_T please help me guys
here is the line that is having an error
>$user = $_SESSION['log']['username'];
here is the whole code >
<?php
include("session/DBConnection.php");
$user = $_SESSION['log']['username'];
$query = mysql_query("SELECT * FROM members WHERE username = '$user'") or die (mysql_error());
$display = mysql_fetch_array($query); ?>