summaryrefslogtreecommitdiff
path: root/Database/meth_dbadmin.php
diff options
context:
space:
mode:
Diffstat (limited to 'Database/meth_dbadmin.php')
-rw-r--r--Database/meth_dbadmin.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/Database/meth_dbadmin.php b/Database/meth_dbadmin.php
index 32d6077..883063b 100644
--- a/Database/meth_dbadmin.php
+++ b/Database/meth_dbadmin.php
@@ -15,8 +15,8 @@ class DbAdmin extends DbMain {
// https://www.php.net/manual/fr/pdostatement.fetch.php
// "PDO::FETCH_ASSOC: retourne un tableau indexé
// par le nom de la colonne comme retourné dans le jeu de résultats"
- $data = $this->exec_cmd($reqGetAll, array())->fetchAll(PDO::FETCH_ASSOC);
- return $data;
+ $result = $this->exec_cmd($reqGetAll, array())->fetchAll(PDO::FETCH_ASSOC);
+ return $result;
}
// https://stackoverflow.com/questions/1361340/how-can-i-do-insert-if-not-exists-in-mysql
@@ -44,13 +44,6 @@ class DbAdmin extends DbMain {
return 0;
}
}
-
- // Récupérer toutes les infos de la table jobCategory
- final public function get_all_job_category() {
- $reqGetAll = "SELECT * FROM ".$this->tableJobCategory;
- $data = $this->exec_cmd($reqGetAll, array())->fetchAll(PDO::FETCH_ASSOC);
- return $data;
- }
// Ajout d'une categorie
final public function job_category_register($jobCategoryNameEn, $jobCategoryNameFr) {