diff options
author | Arun Persaud <arun@nubati.net> | 2007-06-24 11:30:20 +0200 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2007-06-24 11:30:20 +0200 |
commit | b6d9a4aa79763981c524b3915ab11e449cad4c42 (patch) | |
tree | 5b713bca22f5889fbc859e84043e08565d20e13b /db.php | |
parent | 7405ce4fabf64e905e7b7371764d74dbc4b1b198 (diff) | |
download | e-DoKo-b6d9a4aa79763981c524b3915ab11e449cad4c42.tar.gz e-DoKo-b6d9a4aa79763981c524b3915ab11e449cad4c42.tar.bz2 e-DoKo-b6d9a4aa79763981c524b3915ab11e449cad4c42.zip |
CLEANUP: get card names from the database
Diffstat (limited to 'db.php')
-rw-r--r-- | db.php | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |