php - How to trigger javascript on mysql update event -
this question has answer here:
i working on chat should display messages in real time.
messages stored in mysql-database.
every dataset has:
- an auto-increment, unique id
- name
- text
- timestamp
the chat works fine, @ moment trigger javascript function setinterval.
question: there way trigger function when there new set of data in database?
i @ using web sockets. see ratchet example of implementing. believe sample chat application.
Comments
Post a Comment