帝国CMS在JS调用登陆状态模板中调用显示会员收到的短消息数

 更新时间:2016年1月27日 12:11  点击:2013

1、在

$mhavelogin=1;

代码下面加上

$user=islogin();

2、在//数据下加上

$msgcount=$empire->gettotal("select count(*) as total from phome_enewsqmsg  where  to_username='$user[username]'");

3、在JS调用登陆状态模板中调用

<?=$msgcount?>


即可实现调用具体信息数

[!--infotagslink--]

相关文章