So I have built a dashboard for the company I work for, that simply displays all mysql entries that meet certain conditions.
My question is simple, but the answer might not be.
What methods can I use (JavaScript most likely) to refresh the page when a new entry is added to the database.
The database collects information from a webform, so when a new user fills out the form, I'd love the page to refresh, thus showing the new entry.
I'm currently using JavaScript to simply refresh the url that the dashboard sits on, every 5min, but I'd love to have it only update if there is a new entry.
Thank you!