english/libraries/joomla/database/database.php
/**
	 * Method to get the first row of the result set from the database query as an array.  Columns are indexed
	 * numerically so the first column in the result set would be accessible via <var>$row[0]</var>, etc.
	 *
	 * @return  mixed  The return value or null if the query failed.
	 *
	 * @since   11.1
	 * @throws  DatabaseException
	 */
Method to get the first row of the result set from the database query as an array.  Columns are indexed
numerically so the first column in the result set would be accessible via $row[0], etc.

@return  mixed  The return value or null if the query failed.


Method to get the first row of the result set from the database query as an array . Columns are indexed numerically so the first column in the result set would be accessible via $row [ 0 ] etc . @return mixed The return value or null if the query failed .
public function loadRow()
	{
		$ret = null;
		if (!($cursor = $this->query())) {
			return null;
		}
		if ($row = $this->fetchArray($cursor)) {
			$ret = $row;
		}
		$this->freeResult($cursor);
		return $ret;
	}
public function loadRow ( ) { $ ret = null ; if ( ! ( $ cursor = $ this -> query ( ) ) ) { return null ; } if ( $ row = $ this -> fetchArray ( $ cursor ) ) { $ ret = $ row ; } $ this -> freeResult ( $ cursor ) ; return $ ret ; }
Method to get the first row of the result set from the database query as an array.
Method to get the first row of the result set from the database query as an array .
// 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.