summaryrefslogtreecommitdiffstats
path: root/db.php
diff options
context:
space:
mode:
authorarun <arun@nubati.net>2006-12-21 20:20:42 +0000
committerarun <arun>2006-12-21 20:20:42 +0000
commitbae8dd0032b45f632e85f12693debd2f03603f07 (patch)
tree54a0c7681306889f037b781d969e5de365a80204 /db.php
parent808d4266534f00dcec0733dc64fe92133c31122d (diff)
downloade-DoKo-bae8dd0032b45f632e85f12693debd2f03603f07.tar.gz
e-DoKo-bae8dd0032b45f632e85f12693debd2f03603f07.tar.bz2
e-DoKo-bae8dd0032b45f632e85f12693debd2f03603f07.zip
fixed a lot of bugs, started to work on solos, moved some stuff to output.php
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)