diff options
author | arun <arun@nubati.net> | 2006-12-21 20:20:42 +0000 |
---|---|---|
committer | arun <arun> | 2006-12-21 20:20:42 +0000 |
commit | bae8dd0032b45f632e85f12693debd2f03603f07 (patch) | |
tree | 54a0c7681306889f037b781d969e5de365a80204 /db.php | |
parent | 808d4266534f00dcec0733dc64fe92133c31122d (diff) | |
download | e-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.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |