Please enable JavaScript to view this site.

Navigation: Advanced topics > Events > Predefined actions

Events. Save old data in another table

Scroll Prev Next More


Save old data in another table action allows saving the old data in another table when the record is updated or deleted. This table should be a part of the project.


Available in following events:

Edit page: Before record updated

List page: Before record deleted



Example 1. Direct SQL query


//**********  Save old data in another table  ************
$sql = "INSERT INTO copy_of_cars (make, model, price) values (";
$sql .= "'".$oldvalues["make"]."',";
$sql .= "'".$oldvalues["model"]."',";
$sql .= $oldvalues["price"];
$sql .= ")";



See also:

Database API:Query()

Database API

Database API: Insert        

Save new data in another table

Insert a record into another table


Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software