I found the Save old data record in another table.
But I must be doing something wrong.
I have copied the table in mysql so everything is the same. Then I changed the name to that table to trucks_archive and imported the new table into mysql.
I then when to the events page and added:
//** Save old data record in another table ****
// Insert record using Data Access Layer (DAL).
// Another table needs to be part of the project.
global $dal;
$tblEvents = $dal->Table("trucks_archive");
$tblEvents->Value["carrier_id"]=$oldvalues["carrier_id"];
$tblEvents->Value["account_id"]=$oldvalues["account_id"];
$tblEvents->Value["submit_date"]=$oldvalues["submit_date"];
$tblEvents->Value["carrier_name"]=$oldvalues["carrier_name"];
$tblEvents->Value["available_date"]=$oldvalues["available_date"];
$tblEvents->Value["origin_country"]=$oldvalues["origin_country"];
$tblEvents->Value["origin_state"]=$oldvalues["origin_state"];
$tblEvents->Value["origin_city"]=$oldvalues["origin_city"];
$tblEvents->Value["trailer_type"]=$oldvalues["trailer_type"];
$tblEvents->Value["full_partial"]=$oldvalues["full_partial"];
$tblEvents->Value["destination_country"]=$oldvalues["destination_country"];
$tblEvents->Value["destination_state"]=$oldvalues["destination_state"];
$tblEvents->Value["destination_city"]=$oldvalues["destination_city"];
$tblEvents->Add();
I then when off and made a test post and deleted it. It did not copy and insert to trucks_archive table but did delete the post? Is there something I am doing wrong? I have checked all spelling and made sure everything is the same. Is there something else I need to put in?
Thanks for your help.. I am using PHPRunner Enterprise 9.6 (Build 27826 x64)
James