irm-1.6-b3/MDB/Common.php
/**
     * Execute the specified query, fetch the value from the first column of
     * the first row of the result set and then frees
     * the result set.
     *
     * @param string $query the SELECT query statement to be executed.
     * @param string $type optional argument that specifies the expected
     *       datatype of the result set field, so that an eventual conversion
     *       may be performed. The default datatype is text, meaning that no
     *       conversion is performed
     * @return mixed field value on success, a MDB error on failure
     * @access public
     */
Execute the specified query, fetch the value from the first column of
the first row of the result set and then frees
the result set.

@param string $query the SELECT query statement to be executed.
@param string $type optional argument that specifies the expected
datatype of the result set field, so that an eventual conversion
may be performed. The default datatype is text, meaning that no
conversion is performed
@return mixed field value on success, a MDB error on failure
@access public
Execute the specified query fetch the value from the first column of the first row of the result set and then frees the result set . @param string $query the SELECT query statement to be executed . @param string $type optional argument that specifies the expected datatype of the result set field so that an eventual conversion may be performed . The default datatype is text meaning that no conversion is performed @return mixed field value on success a MDB error on failure @access public
function queryOne($query, $type = NULL)
    {
        if ($type != NULL) {
            $type = array($type);
        }
        $result = $this->query($query, $type);
        if (MDB::isError($result)) {
            return($result);
        }
        return($this->fetchOne($result));
    }
function queryOne ( $ query , $ type = NULL ) { if ( $ type != NULL ) { $ type = array ( $ type ) ; } $ result = $ this -> query ( $ query , $ type ) ; if ( MDB :: isError ( $ result ) ) { return ( $ result ) ; } return ( $ this -> fetchOne ( $ result ) ) ; }
Execute the specified query, fetch the value from the first column of
 the first row of the result set and then frees
 the result set.
Execute the specified query fetch the value from the first column of the first row of the result set and then frees the result set .