summaryrefslogtreecommitdiffstats
path: root/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'db.php')
-rw-r--r--db.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/db.php b/db.php
index 9f00205..7f47c66 100644
--- a/db.php
+++ b/db.php
@@ -301,7 +301,9 @@ function DB_play_card($trickid,$handcardid,$sequence)
{
mysql_query("INSERT INTO Play VALUES(NULL,NULL,NULL,".DB_quote_smart($trickid).
",".DB_quote_smart($handcardid).",".DB_quote_smart($sequence).")");
- return;
+
+ $playid = mysql_insert_id();
+ return $playid;
}
function DB_get_all_names_by_gameid($id)
@@ -376,4 +378,10 @@ function DB_get_user_timezone($userid)
else
return 0;
}
+
+function DB_insert_comment($comment,$playid,$userid)
+{
+ mysql_query("INSERT INTO Comment VALUES (NULL,NULL,NULL,$userid,$playid, ".DB_quote_smart($comment).")");
+ return;
+}
?> \ No newline at end of file