Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
legi
soft
gestex
Commits
6a196a37
Commit
6a196a37
authored
Jul 15, 2021
by
Estéban Ristich
Browse files
Fix Issue
#62
Add SQL function for recipe
parent
486b1790
Changes
1
Hide whitespace changes
Inline
Side-by-side
module/db-functions.php
View file @
6a196a37
...
...
@@ -1426,4 +1426,14 @@ function set_recipe_new($pdo, $pathname, $intervention_id) {
return
array
(
$pdo
->
lastInsertId
(),
$err_msg
);
}
// ---------------------------------------------------------------------
function
get_recipe_listall_by_equipment
(
$pdo
,
$equipment_id
)
{
$sql
=
'SELECT * FROM recipe WHERE equipment_id = ?;'
;
$stmt
=
$pdo
->
prepare
(
$sql
);
$stmt
->
execute
(
array
(
$equipment_id
));
$result_fetch
=
$stmt
->
fetchAll
(
PDO
::
FETCH_ASSOC
);
return
$result_fetch
;
}
?>
Write
Preview
Markdown
is supported
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