prepare_query(" SELECT SQL_CALC_FOUND_ROWS tg.`id` FROM `torrents_group` AS tg $Join WHERE tg.`picture` = '' ORDER BY RAND() LIMIT 20 "); $DB->exec_prepared_query(); $Groups = $DB->to_array('id', MYSQLI_ASSOC); $DB->prepared_query('SELECT FOUND_ROWS()'); list($NumResults) = $DB->next_record(); $Results = Torrents::get_groups(array_keys($Groups)); View::show_header('Torrent groups with no picture'); ?>
=$DisplayName?> |