From: arun Date: Fri, 12 Jan 2007 10:49:29 +0000 (+0000) Subject: small bug in displaying the score X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88aaf2c34d0b3cc7eff994955a144a8d27b67c7a;p=e-DoKo.git small bug in displaying the score --- diff --git a/index.php b/index.php index e25b720..605a94b 100644 --- a/index.php +++ b/index.php @@ -526,6 +526,7 @@ else if(myisset("me")) $result = mysql_query("SELECT fullname, SUM(score) FROM Score". " LEFT JOIN Hand ON Hand.id=hand_id". " LEFT JOIN User ON Hand.user_id=User.id". + " WHERE Hand.game_id=$gameid". " GROUP BY fullname" ); $message = "The game is over. Thanks for playing :)\n"; while( $r = mysql_fetch_array($result,MYSQL_NUM)) @@ -647,6 +648,7 @@ else if(myisset("me")) $result = mysql_query("SELECT fullname, SUM(score) FROM Score". " LEFT JOIN Hand ON Hand.id=hand_id". " LEFT JOIN User ON Hand.user_id=User.id". + " WHERE Hand.game_id=$gameid". " GROUP BY fullname" ); while( $r = mysql_fetch_array($result,MYSQL_NUM)) echo " FINAL SCORE: ".$r[0]." ".$r[1]."
";