突出显示的行是第24行
注意:未定义的索引:第24行的C:\ xampp \ htdocs \ authors.php中的操作
**if($_GET['action'] == "list") {**
$current = "members";
$list = "members";
}
else if($_GET["list"] == "authors") $current = "authors";
else $current = "members";
答案 0 :(得分:0)
首先检查是否已设置$_GET['action']
if(isset($_GET['action'])) {
if($_GET['action'] == "list") {
$current = "members";
$list = "members";
} else if($_GET["list"] == "authors") {
$current = "authors";
} else {
$current = "members";
}
}