$msgcount=$empire- gettotal("select count(*) as total from phome_enewsqmsg where to_username='$user[username]'");
3、在JS启用登录情况模版中启用
?=$msgcount?
就可以完成启用实际信息内容数
留意:上边的改动次序:先改动3再改动1、2 (由于先改动1、2再改动3时loginjs.php文档会被更换成原先的文档內容)
统计分析新信息总数(把上边的2更换就可以)
$msgcount=$empire- gettotal("select count(*) as total from phome_enewsqmsg where haveread='0' and to_username='$user[username]'");