From 6845863ff32d87d9053ccdcd5f2fcf51a22142d4 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 2 Dec 2007 17:38:01 +0100 Subject: 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. --- index.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'index.php') 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 "
Totals:
\n"; while( $r = mysql_fetch_array($result,MYSQL_NUM)) echo " ".$r[0]." ".$r[1]."
\n"; + + echo "
\n Points Re:
\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]."
\n"; + echo "
\n"; + + echo "
\n Points Contra:
\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]."
\n"; echo "
\n"; + echo "
\n"; + + } break; default: -- cgit v1.2.3-18-g5258