i made a chat application, here is the refresh code
setInterval(function() {
$('#DisplauDiv').load('show-chat.php?session=<?php echo $_GET['session'];?>');
}, 1000);
And this keep loading in each second, that will slow down the perfomance of my Mysql. While i cheeked Facebook(firebug), they dont have anything like this to get response from server.
Please tell me the technique to do this.
Thanks in advance to all for reading and replaying this..