= '$periodo_inicial' && data <= '$periodo_final' ORDER BY data ASC"); } function getReferencias(){ return getDadosList("SELECT referencia, COUNT(referencia) rTotal FROM contador_referencias GROUP BY referencia ORDER BY rTotal DESC LIMIT 40"); } function getOnline(){ global $tempo_online; execSQL("DELETE FROM contador_online WHERE time < '".(time() - $tempo_online)."'"); return getDadosList("SELECT ip, time FROM contador_online ORDER BY time DESC"); }