IC SunsetThe developerWorks Connections platform will be sunset on December 31, 2019. On January 1, 2020, this forum will no longer be available. More details available on our FAQ.
  • 1 reply
  • Latest Post - ‏2014-09-20T11:02:57Z by jitupkp
1140 Posts

Pinned topic PHP/Ajax realtime updating

‏2012-04-08T13:13:09Z |
I'm by no means an expert when it comes to Ajax so I'm looking for support here. I'd like to display how many people are logged into our site using PHP, but have it update in real time. The query is simply SELECT isLoggedIn WHERE isLoggedin != 0 then returning the $query->num_rows;...

Also, how much stress would this put on my server? Maybe it could just update every XX seconds or so.

Any ideas?