The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Multiple SQL Statements, one DB Call
So I'm creating one string with multiple INSERT statements in it, separated by a semi-colon. Standard mySQL insert, nothing special at all.
But I keep getting errors that the SQL is bad. I paste the same SQL into phpMyAdmin, etc.. it works every time. If call query_write for each SQL statement instead of trying to do 2 or more, it works just fine. So basically, instead of only doing 1 call to the database, I have to do 20. I'm sure there is a way around this or I'm doing something wrong when it comes to vB, anyone have any ideas? |
#2
|
||||
|
||||
vBulletin uses mysql_query() or mysqli_query(), depending on the library chosen. This function does not allow multiple queries.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|