I plan to make this comment system where comments can be published and updated without refreshing the page (you can see it on youtube)
Posting comments is understandable (message to a php page from javascript and running a SQL query on the server side to import it, than returning a comment and selecting in html)
An update is a part that I do not understand. How can I refresh a page automatically at regular intervals and add comments? Isn't it a mess when multiple users try to comment at the same time?
I was wondering if anyone could recommend a good way (just like a word of advice) to achieve this and save me some time
Alexim
source share