summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2007-12-02 17:38:01 +0100
committerArun Persaud <arun@nubati.net>2007-12-02 17:38:01 +0100
commit6845863ff32d87d9053ccdcd5f2fcf51a22142d4 (patch)
tree7b4dc62804244a9266602995f6b9e8475d3a9ca6 /index.php
parent1efa2d0cb31f06eb7893ce816e5b0f27ba354a64 (diff)
downloade-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.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/index.php b/index.php
index 1a26347..312dc92 100644
--- a/index.php
+++ b/index.php
@@ -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: