列表页:

$scs=$empire->gettotal("select count(*) as total from phome_enewsfava where id='$r[id]' and classid='$r[classid]'");

$listtemp='收藏数:'.$scs;