我在登录 php 时遇到问题。是说注意:未定义的索引:登录..我尝试自己修复它,但它变得最糟糕T_T请帮助我
这是有错误的行
>$user = $_SESSION['log']['username'];
这是整个代码>
<?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); ?>