Add to another table on insert ?

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
shawnlc
User
Posts: 10

Add to another table on insert ?

Post by shawnlc »

Is it possible to add to another table on insert (insert on table A (field1, field2, field3, field4, field5), also add to Table B (field2, field4, field5))?


mobhar
User
Posts: 11702

Post by mobhar »

Yes. Just use "Row_Inserted" server event to execute INSERT INTO SQL to table B (use ew_Execute global function to execute that SQL).

Please read "Server Events and Client Scripts" topic and "Some Global Functions" sub-topic at the bottom of that current manual page from PHPMaker Help menu for more information.


shawnlc
User
Posts: 10

Post by shawnlc »

Thank you.


Post Reply