summaryrefslogtreecommitdiffstats
path: root/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'db.php')
-rw-r--r--db.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/db.php b/db.php
index 86f3d0e..75cd8a0 100644
--- a/db.php
+++ b/db.php
@@ -803,4 +803,16 @@ function DB_set_recovery_password($user,$newpw)
return;
}
+
+function DB_get_card_name($card)
+{
+ $queryresult = mysql_query("SELECT strength,suite FROM Card WHERE id='$card'");
+
+ $r = mysql_fetch_array($queryresult,MYSQL_NUM);
+ if($r)
+ return $r[0]." of ".$r[1];
+ else
+ return "Error during get_card_name ".$card;
+}
+
?> \ No newline at end of file