Logs NEW Minimal theme
All actions of a table are logged in this table
HIDE CODE
SHOW CODE
<?php
$xcrud2 = Xcrud::get_instance();
$xcrud2->table("logs");
$xcrud2->limit(5);
$xcrud2->unset_remove();
$xcrud2->unset_add();
$xcrud2->unset_edit();
$xcrud2->order_by('updated','desc');
echo $xcrud2->render();
?>
Logs
Logs
# | Table Name | Action | Updated By | ↓ Updated | Record Id | Data | Old Record | |
1 | employees | DELETE | | 25.05.2022 12:53:54 | 1165 | DELETE FROM `employees` WHERE `employeeNumber` =
| 1165 | lhkjhljh | | lkjhljhklj | | 1 | 1143 |
| |
2 | payments | UPDATE | | 25.05.2022 10:13:33 | 28 | UPDATE `payments` AS `payments` SET
| 28 | 128 | FA465482 | 2003-10-18 00:00:00 |
| |
3 | payments | DELETE | | 25.05.2022 09:29:12 | 22 | DELETE FROM `payments` WHERE `paymentId` = '22'
| 22 | 124 | HI366474 | 2004-12-27 00:00:00 |
| |
4 | employees | UPDATE | | 25.05.2022 07:09:53 | 1165 | UPDATE `employees` AS `employees` SET
| 1165 | Jennings | Leslie | x32912 | xyz@dot.net |
| |
5 | payments | UPDATE | | 24.05.2022 07:17:40 | 22 | UPDATE `payments` AS `payments` SET
| 22 | 124 | HI366474 | 2004-12-27 00:00:00 |
| |