Jump to content

how can i create triggers in mysql using php


shwetapandit

Recommended Posts

I'm guessing the real question is how to make a trigger excute PHP code. You can't. MySQL only support's it's own language. Other databses like PostgreSQL could run a shell script or call a URL to trigger some action (provided that performance allows for it) but in MySQL you're stuck.

I'm guessing the real question is how to make a trigger excute PHP code. You can't. MySQL only support's it's own language. Other databses like PostgreSQL could run a shell script or call a URL to trigger some action (provided that performance allows for it) but in MySQL you're stuck.

 

Php can execute a shell script commands.

@madhuvishwakarma

 

posting generic copy/past search results you found on the Internet doesn't help the OP with the specific problem in his code and isn't how programming help works.

 

Please use the forum's


bbcode tags (the edit form's <> button) when posting code.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.