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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -