The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
if
Is there a way to make a if run more then once.
I have to make it say PHP Code:
If someone is smart enough for a solution which I belive there will be here I praise you. |
#2
|
||||
|
||||
Have you tried an while/do while loop?
|
#3
|
||||
|
||||
Ok I should try to explain this a bit better.
- Query the games table for the ID's - Now the ID's are used to form the game_$id columns in the roster table. - Columns have to be checked for a 0 or a 1. - If it is a 1 we must now get the game name. - There are multiple games and the are always added and deleted so it can't be hard coded as I have stated before. I also want to keep the queries limited. |
#4
|
|||
|
|||
use the while loop ( as Assassin said ) when getting the data from the database...
ie. PHP Code:
PHP Code:
Regards, g-force2k2 |
#5
|
||||
|
||||
Hey thanks a lot man, I didn't think it would work cause Im not to familiar with the while loop and how it works.
I really appreciate this! And if you don't mind me asking, does the space before the ) or after the ( do anything, or is it just style. |
#6
|
||||
|
||||
^^ It just makes it easier to read.
|
#7
|
|||
|
|||
Yeah like Mist said, and also because its just my style of coding. I actually have an even different style of coding but i stuck with what I created because I figured it would be easier for you to understand.
Regards, g-force2k2 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|