Well, I have made a userbar at the top if my client, and I've added users online there.
I found a script and edited it a little, to make it refresh my online.php every 50000 miliseconds.
It doesn't seem to work, it still stands on 0 when I go into my client and the client is loaded.
What's wrong with this code?
Thanks!<script data-javascript="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js" type="text/javascript"></script><script type="text/javascript">
var auto_refresh = setInterval(
function()
{
jQuery('#hi').fadeOut('fast').load('online.php').fadeIn("fast");
}, 50000);
</script>
<div id="hi"><?php include("online.php"); ?></div>
<font size="2"><div id="online" style="display: inline;">{online}</div> Jebba's online!</font>
</div>


Reply With Quote![[jQuery] What's wrong with this code? Update online.php](http://ragezone.com/hyper728.png)



