destoon调用企业总数,供应数量,求购数量

{php $company=$db->get_one(“SELECT COUNT(*) AS num FROM “.$DT_PRE.”member WHERE groupid>5”);}
<dt>企业总数:</dt><dd>{$company[num]}</dd>
{php $destoon=$db->get_one(“SELECT COUNT(*) AS num FROM “.$DT_PRE.”buy WHERE status=3”);}
<dt>求购信息数:</dt><dd>{$destoon[num]}</dd>
{php $sellcount=$db->get_one(“SELECT COUNT(*) AS num FROM “.$DT_PRE.”sell WHERE status=3”);}
<dt>供应信息数:</dt><dd>{$sellcount[num]}</dd>

目前共 0 条评论