diff options
author | Arun Persaud <arun@nubati.net> | 2007-12-02 17:38:01 +0100 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2007-12-02 17:38:01 +0100 |
commit | 6845863ff32d87d9053ccdcd5f2fcf51a22142d4 (patch) | |
tree | 7b4dc62804244a9266602995f6b9e8475d3a9ca6 /index.php | |
parent | 1efa2d0cb31f06eb7893ce816e5b0f27ba354a64 (diff) | |
download | e-DoKo-6845863ff32d87d9053ccdcd5f2fcf51a22142d4.tar.gz e-DoKo-6845863ff32d87d9053ccdcd5f2fcf51a22142d4.tar.bz2 e-DoKo-6845863ff32d87d9053ccdcd5f2fcf51a22142d4.zip |
NEW FEATURE: detailed few of the score of one game
display each of the points re and contra made during the game.
At the moment only the names from the database are used.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -1774,8 +1774,26 @@ else if(myisset("me")) echo "<div class=\"total\"> Totals:<br />\n"; while( $r = mysql_fetch_array($result,MYSQL_NUM)) echo " ".$r[0]." ".$r[1]."<br />\n"; + + echo "<div class=\"re\">\n Points Re: <br />\n"; + $queryresult = mysql_query("SELECT score FROM Score ". + " WHERE game_id=$gameid AND party='re'". + " "); + while($r = mysql_fetch_array($queryresult,MYSQL_NUM) ) + echo " ".$r[0]."<br />\n"; + echo "</div>\n"; + + echo "<div class=\"contra\">\n Points Contra: <br />\n"; + $queryresult = mysql_query("SELECT score FROM Score ". + " WHERE game_id=$gameid AND party='contra'". + " "); + while($r = mysql_fetch_array($queryresult,MYSQL_NUM) ) + echo " ".$r[0]."<br />\n"; echo "</div>\n"; + echo "</div>\n"; + + } break; default: |