简体   繁体   English

php / mysql,数据库变化时自动刷新

[英]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我将 php pdo / mysql 与 angularjs 一起使用

I know I have to use a trigger, but how do I link my trigger to my PHP file?我知道我必须使用触发器,但是如何将触发器链接到我的 PHP 文件?

For delphi / firebird: There is a libririe for that (zeoLibs) with the system of events.对于 delphi / firebird:有一个带有事件系统的库(zeoLibs)。 is there an equivalent liberty?有同等的自由吗?

thank you in advance先感谢您

Try to find information about WebSocket and try to work with it.尝试查找有关WebSocket信息并尝试使用它。 I hope this is the solution for you.我希望这是您的解决方案。 It works perfect with angularjs two-way data binding.它与 angularjs 双向数据绑定完美配合。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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