I am displaying a list of items out of a SQL database using PHP. I have a button that opens up a new page in a new tab that will add an additional item to the database.
How would I add the newly added item in the database to the currently displayed list on the first page without refreshing that page?
I can force the page to make an ajax request every few seconds but I don't think that is very good practice.
I have been looking into sockets - however I don't know how to apply that knowledge to my current situation.