Jump to content

Need idea about Database trigger in php-mysql


logicslab

Recommended Posts

That page does have implementation code, for example:

 

delimiter |

CREATE TRIGGER testref BEFORE INSERT ON test1
  FOR EACH ROW BEGIN
    INSERT INTO test2 SET a2 = NEW.a1;
    DELETE FROM test3 WHERE a3 = NEW.a1;
    UPDATE test4 SET b4 = b4 + 1 WHERE a4 = NEW.a1;
  END;
|

hi The Little Guy,

Do I can Write this code directly in a PHP file to implement some trigger functionality. I really need it's usage in context of a real PHP

Program. So I ask I need a "sample" Hello world Code . If any one know it , pls Help me

 

thankfully

Anes P.A  :'(

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.