I want to keep checking a mysql query for rows in the database the same way a chatroom constantly queries and loads new messages. In effect, checking and loading new messages as they are entered into the database.
Also, any tips on how to add a sound effect when new queries are retrieved?
Many Thanks
What you’re looking for is a repeating, timed poll. You can do this with javascript’s
setTimeout()method.As far as playing a sound, I can’t help you there.