![]() |
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. |
Have you tried an while/do while loop?
|
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. |
use the while loop ( as Assassin said ) when getting the data from the database...
ie. PHP Code:
PHP Code:
Regards, g-force2k2 |
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. |
^^ It just makes it easier to read.
|
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 |
All times are GMT. The time now is 10:54 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:
|