english/libraries/joomla/database/database.php
/**
	 * Return the most recent error message for the database connector.
	 *
	 * @param       bool  True to display the SQL statement sent to the database as well as the error.
	 *
	 * @return      string  The error message for the most recent query.
	 *
	 * @since       11.1
	 * @deprecated  11.2
	 */
Return the most recent error message for the database connector.
@param       bool  True to display the SQL statement sent to the database as well as the error.

@return      string  The error message for the most recent query.


Return the most recent error message for the database connector . @param bool True to display the SQL statement sent to the database as well as the error . @return string The error message for the most recent query .
public function stderr($showSQL = false)
	{
		JLog::add('JDatabase::stderr() is deprecated.', JLog::WARNING, 'deprecated');
		if ($this->errorNum != 0) {
			return JText::sprintf('JLIB_DATABASE_ERROR_FUNCTION_FAILED', $this->errorNum, $this->errorMsg)
			.($showSQL ? "<br />SQL = <pre>$this->sql</pre>" : '');
		}
		else {
			return JText::_('JLIB_DATABASE_FUNCTION_NOERROR');
		}
	}
public function stderr ( $ showSQL = false ) { JLog :: add ( 'JDatabase::stderr() is deprecated.' , JLog :: WARNING , 'deprecated' ) ; if ( $ this -> errorNum != 0 ) { return JText :: sprintf ( 'JLIB_DATABASE_ERROR_FUNCTION_FAILED' , $ this -> errorNum , $ this -> errorMsg ) . ( $ showSQL ? " <br />SQL = <pre> $ this -> sql </pre> " : '' ) ; } else { return JText :: _ ( 'JLIB_DATABASE_FUNCTION_NOERROR' ) ; } }
Return the most recent error message for the database connector.
Return the most recent error message for the database connector .
// Deprecation warning.