For my website I echo out $players. The problem is that this instead of replacing the echo it creates a new one. How can i clear the old echo or delete the old one or edit it so it only has one echo shown.
If you don't understand what I mean (I don't blame you), this is the website:
Code:
while(isset($_GET['hello'])) {
sleep(1);
$result = $conn->query("SELECT id FROM gamecode WHERE gamecode = '$gameCode'");
$players = $result->num_rows;
echo "<h4>$players Players</h4>";
flush();
}
Thank you so much for any help you give me.