![]() |
will this bring the server to it's knees?
PHP Code:
|
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. |
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? |
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'))) |
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.
|
Quote:
PHP Code:
works like charm |
might just be me but is selecting everything from the usertable nessisary?
PHP Code:
PHP Code:
|
All times are GMT. The time now is 10:00 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|