The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
What is the syntax for inserting into a table and immediately receiving back the id for that row in vbulletin? An example of how it works would suffice as well.
Thanks in advance. |
|
#2
|
||||
|
||||
|
Code:
$db->query_write("
INSERT INTO " . TABLE_PREFIX . "yourtable
(fields)
VALUES
(yourvalues)
");
$returnedid = $db->insert_id();
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|