5 人参与回答
打开PHP,在最后面添加一个函数:
function Getusericon($mid)
{
global $dsql;
$row = $dsql->GetOne("SELECT scores from `#@__member` where mid='$mid' ");
$scores=$row['scores'];
$arr = $dsql->GetOne("SELECT icon from `#@__scores` where integral <='$scores' order by integral desc");
$icon=$arr['icon'];
echo $icon;
}
然后调用时使用 ( 会员星星数:<?php Getusericon($row['mid']);?> )
安装插件