Or need a page " nome.php" runs in the background
every 2 seconds.
Without:
header ("Refresh: 2, url =". $ _SERVER ["PHP_SELF"]);
or
cron
...............................
page name.php
$con = mysql_connect("localhost","xxxxx","xxxxx");
if (!$con){die('Could not connect: ' . mysql_error());}
mysql_select_db("xxxx", $con);
$result = mysql_query("SELECT * FROM bbb ");
$row_ro = mysql_fetch_array($result);
$id_2 = $row_ro['id_2'];
$query0 = "UPDATE bbb.siti SETtop_2 = '2' WHERE bbb.id_2 ='$id_2'";
mysql_query($query0);
mysql_close($con);
.....................
.........................
thank you very much to all