添加用户自定义函数
1.函数内容如下:
代码如下:
<?php function user_newstotal($userid){ global $empire,$class_r,$dbtbpre; $query="select count(*) as total from {$dbtbpre}ecms_news WHERE userid=".$userid." "; $num=$empire->gettotal($query); echo $num; } ?>登录后复制
本文地址:http://ezhuoer.com