Update record in another table

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

Update record in another table

Post by salazar »

Update record in another table, to add, modify and delete a record

Table 1: store
Structure: id_product, product, quantity, price, details

Table 2: order
Structure: id_order, name, client, id_product, quantity

When you add, edit or delete a record in the table "order" , will add or subtract the quantity of the selected product from table "store".

Thanks for your support


mobhar
User
Posts: 11905

Post by mobhar »

Simply use "Row_Inserted", "Row_Updated", and "Row_Deleted" server events of the "order" table. Read "Server Events and Client Scripts" in the help file for further information and more example.


Post Reply