摘要: 会员空间模板支持用php查询所有表,例子:会员空间的留言用这个调用:<?php$gbsql=$empire->query("select gid,isprivate,uid,uname,ip,addtime,gbtext,retext from {$dbtbpre}enewsmembergbook where userid='$userid' or
会员空间模板支持用php查询所有表,例子:会员空间的留言用这个调用:
<?php
$gbsql=$empire->query("select gid,isprivate,uid,uname,ip,addtime,gbtext,retext from {$dbtbpre}enewsmembergbook where userid='$userid' order by gid desc limit 10");
while($gbr=$empire->fetch($gbsql))
{
?>
留言者:<?=$gbr[uname]?>
<br>
留言时间:<?=$gbr[addtime]?>
<br>
留言内容:<?=nl2br($gbr['gbtext'])?>
<?php
}
?>