From c7e4dace8b3cb560e50433dd2dbda2b73548b8b2 Mon Sep 17 00:00:00 2001 From: algolfier Date: Mon, 23 Nov 2020 11:51:01 +0100 Subject: [PATCH] Suppression classe Connection.php - erreur --- SwichGIT/BDD/ConnectionBd.php | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 SwichGIT/BDD/ConnectionBd.php diff --git a/SwichGIT/BDD/ConnectionBd.php b/SwichGIT/BDD/ConnectionBd.php deleted file mode 100644 index c5a0139..0000000 --- a/SwichGIT/BDD/ConnectionBd.php +++ /dev/null @@ -1,30 +0,0 @@ -setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION); -} - -public function executeQuery(string $query,array $parameters=[]) : bool{ - $this->stmt = parent::prepare($query); - foreach ($parameters as $name => $value) { - $this->stmt->bindValue($name , $value[0] , $value[1]); - } - return $this->stmt->execute(); -} - -public function getResults() : array { - return $this->stmt->fetchall(); -} - - - -} - -?> \ No newline at end of file