src/Util/PDOX.php
function rowDie($sql, $arr=FALSE, $error_log=TRUE) {
        $stmt = self::queryDie($sql, $arr, $error_log);
        $row = $stmt->fetch(\PDO::FETCH_ASSOC);
        return $row;
    }
function rowDie($sql, $arr=FALSE, $error_log=TRUE) {
        $stmt = self::queryDie($sql, $arr, $error_log);
        $row = $stmt->fetch(\PDO::FETCH_ASSOC);
        return $row;
    }
function rowDie ( $ sql , $ arr = FALSE , $ error_log = TRUE ) { $ stmt = self :: queryDie ( $ sql , $ arr , $ error_log ) ; $ row = $ stmt -> fetch ( \ PDO :: FETCH_ASSOC ) ; return $ row ; }
Prepare and execute an SQL query and retrieve a single row.

@param $sql The SQL to execute in a string.  If the SQL is badly formed this function will die.
@param $arr An optional array of the substitition values if needed by the query
@param $error_log Indicates whether or not errors are to be logged. Default is TRUE.
@return array This is either the row that was returned or FALSE if no rows were
returned.
Prepare and execute an SQL query and retrieve a single row .