From 1609d836dc4157e318707b6a5a859f42b527b0cf Mon Sep 17 00:00:00 2001 From: arun Date: Fri, 12 Jan 2007 15:21:14 +0000 Subject: added some checks for poverty and wedding, but only nines are handled correctly from now on --- db.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'db.php') diff --git a/db.php b/db.php index 88be2a3..45f5eff 100644 --- a/db.php +++ b/db.php @@ -236,6 +236,18 @@ function DB_get_hand_status_by_userid_and_gameid($uid,$gid) return 0; } +function DB_get_sickness_by_userid_and_gameid($uid,$gid) +{ + $result = mysql_query("SELECT sickness 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) + return $r[0]; + else + return 0; +} + function DB_get_gameid_by_hash($hash) { $result = mysql_query("SELECT game_id FROM Hand WHERE hash=".DB_quote_smart($hash)); -- cgit v1.2.3-18-g5258