PHP: Check mysql database every 10 seconds for any new rows

前端 未结 5 1914
南笙
南笙 2021-01-20 17:23

I am making a php chat and am starting the php checking database part. So when a user types something into the chat, it gets recorded in the MySQL database, how would I chec

5条回答
  •  我在风中等你
    2021-01-20 18:09

    Use MySQL Event Scheduler.

    Below link will guide you through .

    http://www.9lessons.info/2012/10/mysql-event-scheduler.html.

    I think best option in your case .

提交回复
热议问题