feature request: show complete hand for completed games
[e-DoKo.git] / db.php
diff --git a/db.php b/db.php
index 38b788cd70d6c41bce8aa6d013b55be06e555ca9..8feb186682843156f20ce9217335dc838718b18c 100644 (file)
--- 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();