include("path.php"); include(BASE."include/"."incl.php"); apidb_header("Vote Stats - Top 25 Applications"); $voteQuery = "SELECT appVotes.appId, appName, count(userId) as count ". "FROM appVotes, appFamily ". "WHERE appVotes.appId = appFamily.appId ". "GROUP BY appId ORDER BY count DESC LIMIT 25"; $result = mysql_query($voteQuery); if($result) { echo html_frame_start("", "90%", '', 0); echo html_table_begin("width='100%' align=center"); echo "