Usually I make content refresh automatically with the javascript function using setInterval. But it seems ineffective because every second the content must be reloaded will take up a lot of resources.
Therefore if there is another alternative to creating an automatic refresh function only when the data has changed in the database.
websocketin php and listen for changes injavascriptand refresh on changes Ref: Websockets in PHPSHOW CREATE TABLE {tablename}and the SQL to retrieve it. What would the SQL be to retrieve the changes? How are database changes occuring and could you use a websocket to pipe raw new results from whatever changes it.