CMXX - Update history table to equipment_history

This commit is contained in:
“VeLiTi”
2024-12-02 19:13:44 +01:00
parent 6bb7b2d1de
commit c0f43a5ed0
4 changed files with 8 additions and 8 deletions

View File

@@ -125,7 +125,7 @@ switch ($action) {
$firmware_account_send = 1;
//create history
// Prepare queries
$sql = 'INSERT INTO history (equipmentid, type, description, created, createdby) VALUES (?,?,?,?,?)';
$sql = 'INSERT INTO equipment_history (equipmentid, type, description, created, createdby) VALUES (?,?,?,?,?)';
$stmt = $pdo->prepare($sql);
$stmt->execute([$rowID['rowID'],$type9,$description,$timestamp,$post_content['email']]);
@@ -232,7 +232,7 @@ switch ($action) {
// --------------------------------------------
$firmware_account_send = 1;
//create history
$sql = 'INSERT INTO history (equipmentid, type, description, created, createdby) VALUES (?,?,?,?,?)';
$sql = 'INSERT INTO equipment_history (equipmentid, type, description, created, createdby) VALUES (?,?,?,?,?)';
$stmt = $pdo->prepare($sql);
$stmt->execute([$rowID['rowID'],$type9,$description,$timestamp,$post_content['email']]);