diff options
| author | Debulois <quentin@debulois.fr> | 2022-03-18 13:22:30 +0100 |
|---|---|---|
| committer | Debulois <quentin@debulois.fr> | 2022-03-18 13:22:30 +0100 |
| commit | f66e40340d62b5c694093bc6d10f99337382d12a (patch) | |
| tree | bda05cfabbe465c3b24c0349dcbda33f21045954 /Database/meth_dbadmin.php | |
| parent | 473e6eb56ca1211be05d2b5fd814710f2ff78d38 (diff) | |
Réécriture du JS & Modifications de la gestion des informations de l'utilisateur et d'autres trucs
Diffstat (limited to 'Database/meth_dbadmin.php')
| -rw-r--r-- | Database/meth_dbadmin.php | 11 |
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) { |
