Note: Change the values listed in
red to match your specific needs.
//********** Save old data record in another table ************ global$conn,$strTableName; $strSQLSave = "INSERT INTO AnotherTable (Field1, Field2) SELECT Field1, Field2 FROM ".$strTableName." where ".$where; db_exec($strSQLSave,$conn);