<ul> {php $sellcount=$db->get_one("SELECT COUNT(*) AS num FROM ".$DT_PRE."sell WHERE status=3");} <li>共有{$sellcount[num]}条供应</li> {php $company=$db->get_one("SELECT COUNT(*) AS num FROM ".$DT_PRE."member WHERE groupid>5");} <li>共有{$company[num]}个企业</li> {php $newcount=$db->get_one("SELECT COUNT(*) AS num FROM ".$DT_PRE."article_21 WHERE status=3");} <li>共有{$newcount[num]}条资讯</li> </ul>
页面显示当前的日期的方法:
{date('Y-m-d',$DT_TIME)}