帝国CMS利用SQL调用已注册会员总数及最新会员名字方法

帝国CMS利用SQL调用已注册会员总数及最新会员名字方法

免费资源网,https://freexyz.cn/

不多说,直接上代码:

p PHP <?php $members=$empire->gettotal(“select count(*) as total from phome_enewsmember”); $newmember=$empire->fetch1(“select userid,username from phome_enewsmember order by userid desc limit 1”); ?> 会员总人数:<?=$members?>

最新会员:<?=$newmember[username]?>

<?php
$members=$empire->gettotal("select count(*) as total from phome_enewsmember");
$newmember=$empire->fetch1("select userid,username from phome_enewsmember order by userid desc limit 1");
?>
会员总人数:<?=$members?>
<br>
最新会员:<?=$newmember[username]?>
免费资源网,https://freexyz.cn/


帝国cmssql

分享到 :
相关推荐