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
77a7d4bc
Commit
77a7d4bc
authored
Jul 26, 2020
by
Gabriel Moreau
Browse files
Add function get_team_all_by_id
parent
d68257b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
module/db-functions.php
View file @
77a7d4bc
...
...
@@ -266,6 +266,18 @@ function get_team_by_id($pdo, $id) {
// ---------------------------------------------------------------------
function
get_team_all_by_id
(
$pdo
,
$id
)
{
$sql
=
'SELECT * FROM equipe WHERE id = ?;'
;
$stmt
=
$pdo
->
prepare
(
$sql
);
$stmt
->
execute
(
array
(
$id
));
$result_fetch
=
$stmt
->
fetchAll
(
PDO
::
FETCH_ASSOC
);
if
(
count
(
$result_fetch
)
>
0
)
return
$result_fetch
[
0
];
return
false
;
}
// ---------------------------------------------------------------------
function
get_team_listshort
(
$pdo
)
{
$sql
=
'SELECT id, nom FROM equipe ORDER BY nom;'
;
$stmt
=
$pdo
->
prepare
(
$sql
);
...
...
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