Difference between revisions of "JDatabaseMySQL::insertid"
From Joomla! Documentation
(Layout updates) |
m (preparing for archive only) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
=={{JVer|11.1}} JDatabaseMySQL::insertid== | =={{JVer|11.1}} JDatabaseMySQL::insertid== | ||
===Description=== | ===Description=== | ||
− | + | Method to get the auto-incremented value from the last INSERT statement. | |
+ | |||
+ | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<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 415 of libraries/joomla/database/database/mysql.php | ||
+ | * '''Since''' {{JVer|11.1 }} | ||
+ | ===See also=== | ||
+ | * {{JVer|11.1}} '''JDatabaseMySQL::insertid source code''' on [[jplatform:database/database/mysql.php#cl-407|BitBucket]] | ||
+ | * {{JVer|11.1}} Class [[API17:JDatabaseMySQL|JDatabaseMySQL]] | ||
+ | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]] | ||
+ | * [[API17:JDatabaseMySQL::insertid|Other versions of JDatabaseMySQL::insertid]] | ||
− | + | ||
− | + | ===User contributed notes=== | |
− | + | === Code Examples === | |
− | |||
− | === | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ===Examples=== | ||
− | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JDatabaseMySQL::insertid | category=JDatabaseMySQL::insertid | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 21:38, 24 March 2017
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.
JDatabaseMySQL::insertid[edit]
Description[edit]
Method to get the auto-incremented value from the last INSERT statement.
public function insertid ()
- Returns integer The value of the auto-increment field from the last inserted row.
- Defined on line 415 of libraries/joomla/database/database/mysql.php
- Since
See also[edit]
- JDatabaseMySQL::insertid source code on BitBucket
- Class JDatabaseMySQL
- Subpackage Database
- Other versions of JDatabaseMySQL::insertid
User contributed notes[edit]
Code Examples[edit]