API17

Difference between revisions of "JDatabase::getErrorNum"

From Joomla! Documentation

(Layout updates)
m (→‎See also: moving preparation)
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
=={{JVer|11.1}} JDatabase::getErrorNum==
 
=={{JVer|11.1}} JDatabase::getErrorNum==
 
===Description===
 
===Description===
Get the error number.  
+
Gets the error number from the database connection.  
  
 
{{Description:JDatabase::getErrorNum}}
 
{{Description:JDatabase::getErrorNum}}
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JDatabase::getErrorNum|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JDatabase::getErrorNum|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JDatabase::getErrorNum ()
+
public function getErrorNum ()
 
</source>
 
</source>
===Returns===
+
* '''Returns''' integer The error number for the most recent query.
int The error number for the most recent query
+
* '''Defined''' on line 1420 of libraries/joomla/database/database.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/database/database.php (line 393)
 
* see source code in [[jplatform:database/database.php#cl-393|BitBucket]]
 
===Referenced by===
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JDatabase::getErrorNum source code''' on [[jplatform:database/database.php#cl-1412|BitBucket]]
 +
* {{JVer|11.1}} Class [[API17:JDatabase|JDatabase]]
 +
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]]
 +
* [[API17:JDatabase::getErrorNum|Other versions of JDatabase::getErrorNum]]
 +
{{SeeAlso:JDatabase::getErrorNum}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JDatabase::getErrorNum|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JDatabase::getErrorNum|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JDatabase/11.1|JDatabase]]
+
===User contributed notes===
* [[JDatabase::getErrorNum|Other versions of this method]]
 
{{SeeAlso:JDatabase::getErrorNum}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 33: Line 31:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JDatabase]][[Category:JDatabase::getErrorNum]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Revision as of 20:01, 11 May 2013

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JDatabase::getErrorNum[edit]

Description[edit]

Gets the error number from the database connection.

Template:Description:JDatabase::getErrorNum [Edit Descripton]

public function getErrorNum ()
  • Returns integer The error number for the most recent query.
  • Defined on line 1420 of libraries/joomla/database/database.php
  • Since Joomla 11.1

See also[edit]

Template:SeeAlso:JDatabase::getErrorNum [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />