I'm new in ajax. I have try to find solution but failed. I want to refresh MySQL query in every second but how? I have no idea how to do it so please help me.
CODE
$sql="SELECT * FROM `user`";
$result = mysql_query($sql);
while($row = mysql_fetch_array($result)) {
echo $row['fname'];
echo $row['email'];
}
var timer=setInterval(functionName,1000)
to call the PHP Skript by Ajax. I can't say more you don't give many details to work with. Another more brutal solutuion: set the meta refresh tag in HTML.