Forum Moderators: open
var user= setInterval(function()
{
$('#user).load(user.php?id='+ Math.random());
}, 5000);user.php:
$rez= mysql_query($sql, $db) or die("Error");
while($r = mysql_fetch_array($rez, MYSQL_ASSOC )){
$name= $r["name"];
$time= $r["time"];
$name show in div name, and $time show in div time.
One file, and two <div>
I hope to understand my trouble