From 463139601c046a5201cb8a73473f8fe5c568b760 Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Thu, 27 Apr 2023 20:15:02 +0300 Subject: rearangment completed; now anything is simplel --- public/app/models/History_model.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 public/app/models/History_model.php (limited to 'public/app/models/History_model.php') diff --git a/public/app/models/History_model.php b/public/app/models/History_model.php new file mode 100644 index 0000000..f50539f --- /dev/null +++ b/public/app/models/History_model.php @@ -0,0 +1,34 @@ +query( + "INSERT INTO history + (user_id, `type`, `message`, `note`, `ip`) + VALUES + (:uid, :type, :msg, :note, :ip)", + [ + ':uid' => $user_id, + ':type' => $type, + ':msg' => $message, + ':note' => $note, + ':ip' => Registry::get('REQUEST')->IP + ] + )->lastInsertID(); + + } + + + +} \ No newline at end of file -- cgit v1.2.3