Fix visualizzazione

This commit is contained in:
cmaffio
2016-04-26 12:37:09 +02:00
parent 35961cc8e2
commit 5becd28889
2 changed files with 6 additions and 8 deletions

View File

@@ -31,8 +31,12 @@ if (isset($_POST['tempo'])) {
<?php
$query = "SELECT GREATEST (sum(inviati), sum(ricevuti)) AS max from proxy_dati WHERE data_destroy >= DATE_SUB(NOW(), INTERVAL 1 $tempo) GROUP BY ip";
$res = mysql_query( $query, $DB_ID );
$valori = mysql_fetch_array ( $res );
$max = $valori['max'];
$max = 0;
while ($valori = mysql_fetch_array ( $res )) {
if ($valori['max'] > $max) {
$max = $valori['max'];
}
}
$query = " SELECT
proxy_pool.attivo,