2011 © junta de freguesia de curvos | todos os direitos reservados.
include ('config/config.php');
$query = "SELECT visitas_n FROM contadores WHERE id='1'";
$res = mysql_db_query($database_conn,$query);
$registo=mysql_fetch_array($res);
$visitas=$registo["visitas_n"];
/* $counter = "visitas.txt";
$fd = fopen($counter, "r");
$num = fread($fd, filesize( $counter ));
fclose($fd);
$fd = fopen($counter, "w"); */
$users = $visitas + 1;
$query = "UPDATE contadores SET visitas_n=$users WHERE id=1";
$res = mysql_db_query($database_conn,$query);
echo "
Total de Visitantes: $users | ";
/* fwrite($fd, $users);
fclose($fd); */
?> Temos 2 visitantes online