From 7ecd66ab61eb1f0e8d32e75570b4809b57ae79d5 Mon Sep 17 00:00:00 2001 From: arun Date: Tue, 6 Feb 2007 02:03:39 +0000 Subject: feature request: show complete hand for completed games --- db.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'db.php') diff --git a/db.php b/db.php index 38b788c..8feb186 100644 --- a/db.php +++ b/db.php @@ -303,6 +303,19 @@ function DB_get_hand($me) return $cards; } +function DB_get_all_hand($me) +{ + $cards = array(); + + $handid = DB_get_handid_by_hash($me); + + $result = mysql_query("SELECT card_id FROM Hand_Card WHERE hand_id=".DB_quote_smart($handid)); + while($r = mysql_fetch_array($result,MYSQL_NUM)) + $cards[]=$r[0]; + + return $cards; +} + function DB_get_cards_by_trick($id) { $cards = array(); -- cgit v1.2.3-18-g5258