irm-1.6-b3/MDB/querysim.php
/**
     * Count the number of columns returned by the DBMS in a query result.
     *
     * @param resource    $result        result identifier
     * @access public
     * @return mixed integer value with the number of columns, a MDB error
     *                       on failure
     */
Count the number of columns returned by the DBMS in a query result.
@param resource    $result        result identifier
@access public
@return mixed integer value with the number of columns, a MDB error
on failure
Count the number of columns returned by the DBMS in a query result . @param resource $result result identifier @access public @return mixed integer value with the number of columns a MDB error on failure
function numCols($result)
    {
        $result_value = $this->_querySimSignature($result);
        if (!isset($this->highest_fetched_row[$result_value])) {
            return $this->raiseError(MDB_ERROR_INVALID, null, null,
                'numCols: a non-existant result set was specified');
        }
        $cols = count($result[0]);
        return $cols;
    }
function numCols ( $ result ) { $ result_value = $ this -> _querySimSignature ( $ result ) ; if ( ! isset ( $ this -> highest_fetched_row [ $ result_value ] ) ) { return $ this -> raiseError ( MDB_ERROR_INVALID , null , null , 'numCols: a non-existant result set was specified' ) ; } $ cols = count ( $ result [ 0 ] ) ; return $ cols ; }
Count the number of columns returned by the DBMS in a query result.
Count the number of columns returned by the DBMS in a query result .