english/libraries/joomla/database/database.php
/**
	 * Method to get the first field of the first row of the result set from the database query.
	 *
	 * @return  mixed  The return value or null if the query failed.
	 *
	 * @since   11.1
	 * @throws  DatabaseException
	 */
Method to get the first field of the first row of the result set from the database query.
@return  mixed  The return value or null if the query failed.


Method to get the first field of the first row of the result set from the database query . @return mixed The return value or null if the query failed .
public function loadResult()
	{
		$ret = null;
		if (!($cursor = $this->query())) {
			return null;
		}
		if ($row = $this->fetchArray($cursor)) {
			$ret = $row[0];
		}
		$this->freeResult($cursor);
		return $ret;
	}
public function loadResult ( ) { $ ret = null ; if ( ! ( $ cursor = $ this -> query ( ) ) ) { return null ; } if ( $ row = $ this -> fetchArray ( $ cursor ) ) { $ ret = $ row [ 0 ] ; } $ this -> freeResult ( $ cursor ) ; return $ ret ; }
Method to get the first field of the first row of the result set from the database query.
Method to get the first field of the first row of the result set from the database query .
// Initialise variables. // Execute the query and get the result set cursor. // Get the first row from the result set as an array. // Free up system resources and return.