我在这里不断收到与标题同名的错误...我无法弄清楚为什么会发生这种情况。在过去的一个小时左右,我一直在努力让它发挥作用。
<?php
class siteHeader extends siteSetting
{
public $html;
public $pid;
function __construct()
{
parent::__construct();
$this->pid = $_GET['pid'];
$this->html .= "<body>";
$this->html .="<div id='site_header'>";
$this->constructHeader();
$this->constructMenu();
$this->html .="</div>";
$this->html .= "</body>";
echo $this->html;
}
function constructHeader()
{
$this->html .= '<h1>'.SITE_NAME.'</h1>';
}
function constructMenu()
{
parent::select_db('thc_settings');
$que = parent::query('SELECT * FROM pages');
$row = $que->fetch_array();
echo $row[0];
}
}