Reputation: 18200
Is there a tutorial out there which shows you how to refresh a DIV upon a MySQL change? Like to show only the MySQL records above a certain timestamp and/or ID?
Upvotes: 0
Views: 978
Reputation: 15070
I agree with the comments.
But, you can try to experiment an event-driven server side technology. For example, node.js
(based on websockets).
Your client stays listening till an event occurs (database insert), and then, you can reload your div.
This is theory, but I'm sure you can do it this way.
But, as Marco said it, the best way is to set intervals to your refresh (poll method).
Regards.
Upvotes: 1