Greetings
I've run across a particular predicament:
I am building a website for some pc gaming team and while doing a sub section of the MATCHES area, problems arose.
If each team has 4 players, and the match ends when either side runs out players by playing best out of one, you can have anything between 4 rounds miniumum (4-0) and 7 rounds total (4-3).
I don't want to have a static page for each possible round number (4-5-6-7), and thus the question.
Each row is basically like this:
Player_1_Race - Player_1_Name - Playere_1_Score - Enemy_1_Score _ Enemy_1_Name - Enemy_1_Race
<img src="<?php echo $row_matches_detail2['r1']; ?>" width="35" height="11" />
<?php echo $p_1; ?>
<?php echo $left_1." : ".$right_1; ?> (The results mixed with some code of my own to have the 'winner side' get a highlight/bold style to emphasize it)
<?php echo $e_1; ?>
<img src="<?php echo $row_matches_detail2['re1']; ?>" width="35" height="11" />
I wanted to count the total score for each side to determine the factual number of rounds and then based on that, make a do while loop until the data is pasted the correct X number of times.
I however, have not been able to find a way to dynamically load static vars.
For instance:
I'd like to get $row_matches_detail2['re1'] to change its number 1 inside the simple quotes to number 2 for the second time the loop goes through, and then to 3 and so forth, thus effectively placing the desired data and stopping before reaching Rounds that never existed.
Thanks in advance
I've run across a particular predicament:
I am building a website for some pc gaming team and while doing a sub section of the MATCHES area, problems arose.
If each team has 4 players, and the match ends when either side runs out players by playing best out of one, you can have anything between 4 rounds miniumum (4-0) and 7 rounds total (4-3).
I don't want to have a static page for each possible round number (4-5-6-7), and thus the question.
Each row is basically like this:
Player_1_Race - Player_1_Name - Playere_1_Score - Enemy_1_Score _ Enemy_1_Name - Enemy_1_Race
<img src="<?php echo $row_matches_detail2['r1']; ?>" width="35" height="11" />
<?php echo $p_1; ?>
<?php echo $left_1." : ".$right_1; ?> (The results mixed with some code of my own to have the 'winner side' get a highlight/bold style to emphasize it)
<?php echo $e_1; ?>
<img src="<?php echo $row_matches_detail2['re1']; ?>" width="35" height="11" />
I wanted to count the total score for each side to determine the factual number of rounds and then based on that, make a do while loop until the data is pasted the correct X number of times.
I however, have not been able to find a way to dynamically load static vars.
For instance:
I'd like to get $row_matches_detail2['re1'] to change its number 1 inside the simple quotes to number 2 for the second time the loop goes through, and then to 3 and so forth, thus effectively placing the desired data and stopping before reaching Rounds that never existed.
Thanks in advance