lib/Mysql.php
public function query(string $sql, array $params = []): Statement
    {
        $this->usedPrepare = false;
        $stmt = $this->prepare($sql, $params);
        $this->usedPrepare = true;
        $stmt->execute();
        return $stmt;
    }
public function query(string $sql, array $params = []): Statement
    {
        $this->usedPrepare = false;
        $stmt = $this->prepare($sql, $params);
        $this->usedPrepare = true;
        $stmt->execute();
        return $stmt;
    }
public function query ( string $ sql , array $ params = [ ] ) : Statement { $ this -> usedPrepare = false ; $ stmt = $ this -> prepare ( $ sql , $ params ) ; $ this -> usedPrepare = true ; $ stmt -> execute ( ) ; return $ stmt ; }
Prepares and executes a single MySQL query with bound parameters
Prepares and executes a single MySQL query with bound parameters