Lines Matching refs:stats_sql
760 $stats_sql = $stats = []; variable
761 $stats_sql['Total'] = new Query('SELECT COUNT(votes.id) AS total FROM votes');
762 …$stats_sql['Total Up'] = new Query('SELECT COUNT(votes.id) AS total FROM votes WHERE votes.vote…
763 …$stats_sql['Total Down'] = new Query('SELECT COUNT(votes.id) AS total FROM votes WHERE votes.vote…
764 …$stats_sql['Today'] = new Query('SELECT COUNT(votes.id) AS total FROM votes WHERE UNIX_TIMES…
765 …$stats_sql['This Week'] = new Query('SELECT COUNT(votes.id) AS total FROM votes WHERE UNIX_TIMES…
766 …$stats_sql['This Month'] = new Query('SELECT COUNT(votes.id) AS total FROM votes WHERE UNIX_TIMES…
767 …$stats_sql['Yesterday'] = new Query('SELECT COUNT(votes.id) AS total FROM votes WHERE UNIX_TIMES…
768 …$stats_sql['Last Week'] = new Query('SELECT COUNT(votes.id) AS total FROM votes WHERE UNIX_TIMES…
769 …$stats_sql['Last Month'] = new Query('SELECT COUNT(votes.id) AS total FROM votes WHERE UNIX_TIMES…
770 foreach ($stats_sql as $key => $query) {