Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
legi
soft
gestex
Commits
6202e6f6
Commit
6202e6f6
authored
Jul 07, 2021
by
Estéban Ristich
Browse files
Fix Issue
#69
change max loan order parameter in SQL
parent
7c2b3097
Changes
1
Hide whitespace changes
Inline
Side-by-side
module/db-functions.php
View file @
6202e6f6
...
...
@@ -545,7 +545,7 @@ function set_equipment_new($pdo, $categorie, $nom, $modele, $feature, $equipe, $
function
set_equipment_update
(
$pdo
,
$equipment_id
,
$categorie
,
$nom
,
$modele
,
$feature
,
$equipe
,
$fourn
,
$achat
,
$tech
,
$reparation
,
$accessoires
,
$inventaire
,
$notice
,
$barcode
,
$loanable
,
$max_loan_day
)
{
$sql
=
'UPDATE Listing SET categorie = ?, nom = ?, modele = ?, gamme = ?, equipe = ?, fournisseur = ?, achat = ?, responsable = ?, reparation = ?, accessoires = ?, inventaire = ?, notice = ?, barcode = ?, loanable = ?, max_loan_day = ? WHERE id = ?;)'
;
$stmt
=
$pdo
->
prepare
(
$sql
);
$iostat
=
$stmt
->
execute
(
array
(
$categorie
,
$nom
,
$modele
,
$feature
,
$equipe
,
$fourn
,
$achat
,
$tech
,
$reparation
,
$accessoires
,
$inventaire
,
$notice
,
$barcode
,
$max_loan_day
,
$loanable
,
$max_loan_day
,
$equipment_id
));
$iostat
=
$stmt
->
execute
(
array
(
$categorie
,
$nom
,
$modele
,
$feature
,
$equipe
,
$fourn
,
$achat
,
$tech
,
$reparation
,
$accessoires
,
$inventaire
,
$notice
,
$barcode
,
$loanable
,
$max_loan_day
,
$equipment_id
));
$err_msg
=
''
;
if
(
!
$iostat
)
$err_msg
=
$stmt
->
errorInfo
()[
2
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment