Commit 94ed9ab2 authored by Gabriel Moreau's avatar Gabriel Moreau
Browse files

Error in variable

parent e91ac17a
...@@ -168,7 +168,7 @@ function set_equipment_new($pdo, $categorie, $nom, $modele, $gamme, $equipe, $fo ...@@ -168,7 +168,7 @@ function set_equipment_new($pdo, $categorie, $nom, $modele, $gamme, $equipe, $fo
$status = $stmt->execute(array($categorie, $nom, $modele, $gamme, $equipe, $fourn, $achat, $tech, $reparation, $accessoires, $inventaire, $notice, $barcode, $loanable)); $status = $stmt->execute(array($categorie, $nom, $modele, $gamme, $equipe, $fourn, $achat, $tech, $reparation, $accessoires, $inventaire, $notice, $barcode, $loanable));
$err_msg = ''; $err_msg = '';
if (!$status) if (!$status)
$err_msg$arr = $stmt->errorInfo()[2]; $err_msg = $stmt->errorInfo()[2];
return array($pdo->lastInsertId(), $err_msg); return array($pdo->lastInsertId(), $err_msg);
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment