PHP in Mysql Integration
Moderator: General Moderators
PHP in Mysql Integration
Hey, i have heard that i could get PHP in a MySql database that will execute everytime you retrieve the table infomation, is this true?
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
You can use eval() to execute PHP code stored within a database but I'd avoid that if at all possible and have the PHP code within normal files.
Mac
Mac
sounds like you're asking for triggers
http://www.mysql.com/doc/en/ANSI_diff_Triggers.html
http://www.mysql.com/doc/en/ANSI_diff_Triggers.html
strange, the german translation states that stored procedures will be implemented but without triggersTriggers will also be implemented. A trigger is effectively a type of stored procedure, one that is invoked when a particular event occurs. For example, you can install a stored procedure that is triggered each time a record is deleted from a transaction table and that stored procedure automatically deletes the corresponding customer from a customer table when all his transactions are deleted.