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
350013ec
Commit
350013ec
authored
Jul 24, 2020
by
Gabriel Moreau
Browse files
Add ORDER BY nom on some table
parent
48318083
Changes
1
Hide whitespace changes
Inline
Side-by-side
module/db-functions.php
View file @
350013ec
...
...
@@ -112,7 +112,7 @@ function get_equipment_all_by_id($pdo, $id) {
// ---------------------------------------------------------------------
function
get_equipment_listshort
(
$pdo
)
{
$sql
=
'SELECT id, nom FROM Listing;'
;
$sql
=
'SELECT id, nom FROM Listing
ORDER BY nom
;'
;
$stmt
=
$pdo
->
prepare
(
$sql
);
$stmt
->
execute
();
$result_fetch
=
$stmt
->
fetchAll
(
PDO
::
FETCH_ASSOC
);
...
...
@@ -186,7 +186,7 @@ function get_supplier_by_id($pdo, $id) {
// ---------------------------------------------------------------------
function
get_supplier_listshort
(
$pdo
)
{
$sql
=
'SELECT id, nom FROM fournisseurs;'
;
$sql
=
'SELECT id, nom FROM fournisseurs
ORDER BY nom
;'
;
$stmt
=
$pdo
->
prepare
(
$sql
);
$stmt
->
execute
();
$supplier_fetch
=
$stmt
->
fetchAll
(
PDO
::
FETCH_ASSOC
);
...
...
@@ -196,7 +196,7 @@ function get_supplier_listshort($pdo) {
// ---------------------------------------------------------------------
function
get_supplier_listall
(
$pdo
)
{
$sql
=
'SELECT * FROM fournisseurs;'
;
$sql
=
'SELECT * FROM fournisseurs
ORDER BY nom
;'
;
$stmt
=
$pdo
->
prepare
(
$sql
);
$stmt
->
execute
();
$supplier_fetch
=
$stmt
->
fetchAll
(
PDO
::
FETCH_ASSOC
);
...
...
@@ -228,7 +228,7 @@ function get_team_by_id($pdo, $id) {
// ---------------------------------------------------------------------
function
get_team_listshort
(
$pdo
)
{
$sql
=
'SELECT id, nom FROM equipe;'
;
$sql
=
'SELECT id, nom FROM equipe
ORDER BY nom
;'
;
$stmt
=
$pdo
->
prepare
(
$sql
);
$stmt
->
execute
();
$team_fetch
=
$stmt
->
fetchAll
(
PDO
::
FETCH_ASSOC
);
...
...
@@ -238,7 +238,7 @@ function get_team_listshort($pdo) {
// ---------------------------------------------------------------------
function
get_team_listall
(
$pdo
)
{
$sql
=
'SELECT * FROM equipe;'
;
$sql
=
'SELECT * FROM equipe
ORDER BY nom
;'
;
$stmt
=
$pdo
->
prepare
(
$sql
);
$stmt
->
execute
();
$team_fetch
=
$stmt
->
fetchAll
(
PDO
::
FETCH_ASSOC
);
...
...
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