刚学php ,模仿一asp.net 的datalist类似的功能 $temp; $db=new MyDB(); $sqlcommand='SELECT *, COUNT(DISTINCT dealerTitle) FROM indexshoplist GROUP BY dealerTitle LIMIT 12'; $TableId='otherDealerList'; $tplStr='