From bae8dd0032b45f632e85f12693debd2f03603f07 Mon Sep 17 00:00:00 2001 From: arun Date: Thu, 21 Dec 2006 20:20:42 +0000 Subject: fixed a lot of bugs, started to work on solos, moved some stuff to output.php --- db.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'db.php') 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) -- cgit v1.2.3-18-g5258