From 0edb4b26c049e07af0970e081fab699d2bdd333b Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Thu, 30 Apr 2009 00:08:10 -0700 Subject: NEW FEATURE: show number of tricks a person made only shows 0,1,few or many tricks, so that we don't give too much information away. Might adjust or change this in the future. This addresses issues #11. --- include/db.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/db.php') diff --git a/include/db.php b/include/db.php index 3d9d98c..b8b184d 100644 --- a/include/db.php +++ b/include/db.php @@ -1149,4 +1149,10 @@ function DB_played_by_others($gameid) $gameids[]=$r[0]; return $gameids; } + +function DB_get_number_of_tricks($gameid,$position) +{ + $r = DB_query_array("SELECT COUNT(winner) FROM Trick Where game_id='$gameid' and winner='$position'"); + return $r[0]; +} ?> \ No newline at end of file -- cgit v1.2.3-18-g5258