我收到以下错误消息:
未定义索引:在第 20 行登录 C:\wamp\www\Networking Script\home.php
使用以下 PHP 代码时:
<?php
include("session/DBConnection.php");
$user = $_SESSION['log']['username']; //this is the 20th line in home.php
$query = mysql_query("SELECT * FROM members WHERE username = '$user'")or die (mysql_error());
$display = mysql_fetch_array($query); ?>
请帮帮我 :) 谢谢 :)