Actions

API17

Difference between revisions of "JDatabase::stderr"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by one user not shown)
Line 2: Line 2:
 
=={{JVer|11.1}} JDatabase::stderr==
 
=={{JVer|11.1}} JDatabase::stderr==
 
===Description===
 
===Description===
Print out an error statement.  
+
Return the most recent error message for the database connector.  
  
 
{{Description:JDatabase::stderr}}
 
{{Description:JDatabase::stderr}}
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JDatabase::stderr|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JDatabase::stderr|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JDatabase->stderr ($showSQL=false)
+
public function stderr ($showSQL=false)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 20: Line 19:
 
|-
 
|-
 
|$showSQL
 
|$showSQL
|boolean
+
|bool
 
|false
 
|false
|If TRUE, displays the last SQL statement sent to the database  
+
|True to display the SQL statement sent to the database as well as the error.
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' string The error message for the most recent query.
string A standised error message
+
* '''Defined''' on line 1477 of libraries/joomla/database/database.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/database/database.php
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JDatabase::stderr source code''' on [[jplatform:database/database.php#cl-1469|BitBucket]]
 +
* {{JVer|11.1}} Class [[JDatabase/11.1|JDatabase]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Database/11.1|Database]]
 +
* [[JDatabase::stderr|Other versions of JDatabase::stderr]]
 +
{{SeeAlso:JDatabase::stderr}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JDatabase::stderr|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JDatabase::stderr|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JDatabase/11.1|JDatabase]]
+
===User contributed notes===
* [[JDatabase::stderr|Other versions of this method]]
+
{{SeeAlso:JDatabase::stderr}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 45: Line 44:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JDatabase]][[Category:JDatabase::stderr]]</noinclude>
 
<noinclude>[[Category:JDatabase]][[Category:JDatabase::stderr]]</noinclude>

Revision as of 19:27, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JDatabase::stderr

Description

Return the most recent error message for the database connector.

Description:JDatabase::stderr [Edit Descripton]

public function stderr ($showSQL=false)
Parameter Type Default Description
$showSQL bool false True to display the SQL statement sent to the database as well as the error.
  • Returns string The error message for the most recent query.
  • Defined on line 1477 of libraries/joomla/database/database.php
  • Since Joomla 11.1

See also

SeeAlso:JDatabase::stderr [Edit See Also]

User contributed notes

<CodeExamplesForm />