src/DBConnect.php
public function prepare(string $sql, $standalone = false)
    {
        try {
            $stmt = $this->dbh->prepare($sql);
            if ($standalone) {
                return $stmt;
            } else {
                $this->stmt = $stmt;
            }
            return $this;
        } catch (\PDOException $e) {
            die("Error: " . $e->getMessage());
        }
    }
public function prepare(string $sql, $standalone = false)
    {
        try {
            $stmt = $this->dbh->prepare($sql);
            if ($standalone) {
                return $stmt;
            } else {
                $this->stmt = $stmt;
            }
            return $this;
        } catch (\PDOException $e) {
            die("Error: " . $e->getMessage());
        }
    }
public function prepare ( string $ sql , $ standalone = false ) { try { $ stmt = $ this -> dbh -> prepare ( $ sql ) ; if ( $ standalone ) { return $ stmt ; } else { $ this -> stmt = $ stmt ; } return $ this ; } catch ( \ PDOException $ e ) { die ( "Error: " . $ e -> getMessage ( ) ) ; } }
Prepares an SQL statement

@param  string  $sql         SQL statement
@param  boolean $standalone
@return self
Prepares an SQL statement