API17:JDatabaseMySQLi::insertid
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
| Line 2: | Line 2: | ||
=={{JVer|11.1}} JDatabaseMySQLi::insertid== | =={{JVer|11.1}} JDatabaseMySQLi::insertid== | ||
===Description=== | ===Description=== | ||
| − | + | Method to get the auto-incremented value from the last INSERT statement. | |
{{Description:JDatabaseMySQLi::insertid}} | {{Description:JDatabaseMySQLi::insertid}} | ||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JDatabaseMySQLi::insertid|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JDatabaseMySQLi::insertid|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public | + | public function insertid () |
</source> | </source> | ||
| − | + | * '''Returns''' integer The value of the auto-increment field from the last inserted row. | |
| − | + | * '''Defined''' on line 437 of libraries/joomla/database/database/mysqli.php | |
| − | + | * '''Since''' {{JVer|11.1 }} | |
| − | libraries/joomla/database/database/mysqli.php | + | |
| − | * | + | |
| − | + | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|11.1}} '''JDatabaseMySQLi::insertid source code''' on [[jplatform:database/database/mysqli.php#cl-429|BitBucket]] | ||
| + | * {{JVer|11.1}} Class [[JDatabaseMySQLi/11.1|JDatabaseMySQLi]] | ||
| + | * {{JVer|11.1}} Subpackage [[Subpackage_Database/11.1|Database]] | ||
| + | * [[JDatabaseMySQLi::insertid|Other versions of JDatabaseMySQLi::insertid]] | ||
| + | {{SeeAlso:JDatabaseMySQLi::insertid}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JDatabaseMySQLi::insertid|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JDatabaseMySQLi::insertid|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 33: | Line 31: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JDatabaseMySQLi]][[Category:JDatabaseMySQLi::insertid]]</noinclude> | <noinclude>[[Category:JDatabaseMySQLi]][[Category:JDatabaseMySQLi::insertid]]</noinclude> | ||
Revision as of 20:33, 27 April 2011
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.
JDatabaseMySQLi::insertid
Description
Method to get the auto-incremented value from the last INSERT statement.
Description:JDatabaseMySQLi::insertid [Edit Descripton]
public function insertid ()
- Returns integer The value of the auto-increment field from the last inserted row.
- Defined on line 437 of libraries/joomla/database/database/mysqli.php
- Since
See also
-
JDatabaseMySQLi::insertid source code on BitBucket
-
Class JDatabaseMySQLi
-
Subpackage Database
- Other versions of JDatabaseMySQLi::insertid
SeeAlso:JDatabaseMySQLi::insertid [Edit See Also]
User contributed notes
<CodeExamplesForm />
