diff options
author | Arun Persaud <arun@nubati.net> | 2009-05-11 22:16:55 -0700 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2009-05-11 22:16:55 -0700 |
commit | 51cc704dab09b2027b911a111e4eec2041a14cb1 (patch) | |
tree | 5d1c5b993e352e64b7473d1d88a36ba31f66f94b /include/db.php | |
parent | 14e3ecf14c8b5cc2c1d89940ec61ca8d7a303326 (diff) | |
parent | 0edb4b26c049e07af0970e081fab699d2bdd333b (diff) | |
download | e-DoKo-51cc704dab09b2027b911a111e4eec2041a14cb1.tar.gz e-DoKo-51cc704dab09b2027b911a111e4eec2041a14cb1.tar.bz2 e-DoKo-51cc704dab09b2027b911a111e4eec2041a14cb1.zip |
Merge branch 'master' of /home/arun/nubati.net/git/e-DoKo
Diffstat (limited to 'include/db.php')
-rw-r--r-- | include/db.php | 6 |
1 files changed, 6 insertions, 0 deletions
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 |