The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
will this bring the server to it's knees?
PHP Code:
|
#2
|
||||
|
||||
why don't you collect the values you can and then call them after the loop, with something like this:
[sql] INSERT INTO " . TABLE_PREFIX : "pm (pmtextid, userid, messageread) VALUES (3, 7, 0), (2, 9, 0), (5, 7, 0)[/sql] I usually do this by saving everything in an array and then imploding the array. |
#3
|
||||
|
||||
hmm that's not a bad idea, will it only work for the pm query or willit work for all of em?
also how would i generate the pmtextid's? |
#4
|
||||
|
||||
Basically, you will build a multi-dimensional array based on the userid, the actions you want to validate, and the tasks to perform for each action:
Code:
[userid] => array([actionid] => array([taskid] => array('taskitem1', 'taskitem2', 'taskitem3'))) |
#5
|
|||
|
|||
You should also look into the switch statement. It won't likely change the speed, but it is a far preferable way to take actions based on multiple values of the same variable.
|
#6
|
|||
|
|||
Quote:
PHP Code:
works like charm |
#7
|
|||
|
|||
might just be me but is selecting everything from the usertable nessisary?
PHP Code:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|