php - displaying my count results -
i have made query find how many people have voted entry , goes this:
$query = "select itemid, count(*) totalcount jos_sobi2_plugin_reviews group itemid having count(*) > 1 order count(*) desc ";
the sql works , produces following table.
entry id totalcount -------- ---------- 202 5 203 20 204 15 ...
i want display column totalcount
, dont succeed.
maybe knows query should right on php?
thanks, ronen!
$query = "select count(1) totalcount jos_sobi2_plugin_reviews group itemid having count(1) > 1 order count(1) desc ";
this work fine
Comments
Post a Comment