function getadvdetail($aid)
{
global $aid; //注意这里!!!!!!!!!!!!!!!!
$sql="select * from advertise where aid='$aid'";
$result=mysql_query($sql);
$res=mysql_fetch_row($result);
$this->title=$res["title"];
$this->content=$res["content"];
$this->submittime=$res["submittime"];
}