Mi da questo errore:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /membri/gruppoalveo/funzioni.php on line 80
function ultimo_aggiornamento(){
$result=mysql_query("SELECT MAX(data_localeS) as data FROM successi");
$result2=mysql_query("SELECT MAX(data_localeS) as data FROM sondaggio");
$value=mysql_fetch_array($result);
$value2=mysql_fetch_array($result2); LINEA 80
$file=glob('*'); //legge tutti i file
$file = array_filter($file, "is_file"); //verifica se sono file
$mod_time = array_map('filemtime', $file); //legge il tempo
$data = $value['data'] > $value2['data'] ? $value['data'] : $value2['data'];
return $data > max($mod_time) ? $data : max($mod_time);
}