From f66e40340d62b5c694093bc6d10f99337382d12a Mon Sep 17 00:00:00 2001 From: Debulois Date: Fri, 18 Mar 2022 13:22:30 +0100 Subject: Réécriture du JS & Modifications de la gestion des informations de l'utilisateur et d'autres trucs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/meth_dbadmin.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'Database/meth_dbadmin.php') 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) { -- cgit v1.2.3