简体   繁体   中英

php / mysql, auto refresh when the database changes

I want to automatically refresh the data, once the tables in my database change (After adding, updating or deleting records).

I use php pdo / mysql with angularjs

I know I have to use a trigger, but how do I link my trigger to my PHP file?

For delphi / firebird: There is a libririe for that (zeoLibs) with the system of events. is there an equivalent liberty?

thank you in advance

Try to find information about WebSocket and try to work with it. I hope this is the solution for you. It works perfect with angularjs two-way data binding.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM