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();
|
![]() |
|
|