The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Possible to add data into 2 tables in 1 query?
Well, I would like to add the same data into 2 tables in just 1 query.
Is this possible or should I use 2 querys? I tried to do something like: $DB_site->query("INSERT INTO tablename1, tablename2 (threadid,userid,username,customfield1,customfield 2) VALUES('".$threadinfo['threadid']."','".$bbuserinfo['userid']."','".$customfield1."','".$customfield2."')"); But that didn't work. |
#2
|
|||
|
|||
It's not possible...you need 2 queries.
|
#3
|
|||
|
|||
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|