1、在ememberloginloginjs.php中查找“ $mhavelogin=1; ”在其下面加上$user=islogin();
2、在“$mhavelogin=1;”下的 “//數(shù)據(jù)”下加上
$msgcount=$empire->gettotal("select count(*) as total from phome_enewsqmsg where to_username='$user[username]'");
3、在JS調(diào)用登陸狀態(tài)模板中調(diào)用
<?=$msgcount?>
即可實(shí)現(xiàn)調(diào)用具體信息數(shù)
注意:上面的修改順序:先修改3再修改1、2 (因?yàn)橄刃薷?、2再修改3時(shí)loginjs.php文件會(huì)被替換成原來的文件內(nèi)容)
統(tǒng)計(jì)新消息條數(shù)(把上面的2替換即可)
$msgcount=$empire->gettotal("select count(*) as total from phome_enewsqmsg where haveread='0' and to_username='$user[username]'");