diff --git a/project/src/model/Connection.php b/project/src/model/Connection.php deleted file mode 100644 index f2978a4..0000000 --- a/project/src/model/Connection.php +++ /dev/null @@ -1,34 +0,0 @@ -setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION); -} - - -/** * @param string $query - * @param array $parameters * - * @return bool Returns `true` on success, `false` otherwise -*/ - -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(); - -} -} - -?>