src/DBConnect.php
public function getRow($fetch_style = null)
    {
        if (is_null($fetch_style)) {
            $fetch_style = \PDO::FETCH_ASSOC;
        }
        try {
            return $this->stmt->fetch($fetch_style);
        } catch (\PDOException $e) {
            die("Error: " . $e->getMessage());
        }
    }
public function getRow($fetch_style = null)
    {
        if (is_null($fetch_style)) {
            $fetch_style = \PDO::FETCH_ASSOC;
        }
        try {
            return $this->stmt->fetch($fetch_style);
        } catch (\PDOException $e) {
            die("Error: " . $e->getMessage());
        }
    }
public function getRow ( $ fetch_style = null ) { if ( is_null ( $ fetch_style ) ) { $ fetch_style = \ PDO :: FETCH_ASSOC ; } try { return $ this -> stmt -> fetch ( $ fetch_style ) ; } catch ( \ PDOException $ e ) { die ( "Error: " . $ e -> getMessage ( ) ) ; } }
Returns a next row from a result set

@param  int   $fetch_style   PDO fetch style
@return mixed                Record from result set depending on PDO fetch style
Returns a next row from a result set