summaryrefslogtreecommitdiffstats
path: root/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'db.php')
-rw-r--r--db.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/db.php b/db.php
index 4b18d9c..254c460 100644
--- a/db.php
+++ b/db.php
@@ -200,9 +200,10 @@ function DB_set_hand_status_by_hash($hash,$status)
return;
}
-function DB_get_hand_status_by_userid($id)
+function DB_get_hand_status_by_userid_and_gameid($uid,$gid)
{
- $result = mysql_query("SELECT status FROM Hand WHERE user_id=".DB_quote_smart($id));
+ $result = mysql_query("SELECT status FROM Hand WHERE user_id=".DB_quote_smart($uid).
+ " AND game_id=".DB_quote_smart($gid));
$r = mysql_fetch_array($result,MYSQL_NUM);
if($r)