i want show the total no of registered users in a div. But want it to show the real-time/live count.
I am ( currently ) using :
<?php
$sql="SELECT * FROM QWERTY WHERE abc = '123' AND xyz = '789' ORDER BY id";
if ($result=mysqli_query($conn,$sql)) {
$rowcount=mysqli_num_rows($result);
printf("%d",$rowcount);
mysqli_free_result($result);
} ?>
plz help me in displaying the real-time/live count
You can use some jquery magic to get the current count from a remote page and then put it into your DIV.
http://paste.liam.systems/view/QZVG63LUZ9
The script above will pull from a URL every 5 seconds and add it into the div.