Codice PHP:
<?
# STATISTICHE OGNI 3secondi
function statistiche()
{
_ _ include 'vars.php';
_ _ $db = mysql_connect($server, $user, $pass) or die("errore 1");
_ _ mysql_select_db($database, $db) or die("errore 2");
_ _ $selezione=" SELECT COUNT(id) FROM pages ";
_ _ $result = mysql_query($selezione, $db) or die("errore 3");
_ _ /*$row = mysql_fetch_array($result) or die("errore 4");*/
_ _ /////
_ _ $res_count = mysql_fetch_row($result) or die("errore 5");
_ _ $tot_records = $res_count[0];
_ _
_ _ echo "Attualmente in ______ sono presenti [b]$tot_records Pagine[/b]";
} ?>
_
<script language="javascript">
function conta ()
{
_
_ document.getElementById("remain").innerHTML = "<?=statistiche();?>";
}
_
_ setTimeout ("conta()", 3000 );
</script>
_
<div id="remain"></div>
qualcuno mi sa aiutare.. non so perche nn funziona 
grazie