diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-14 16:03:31 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-14 16:03:31 +0000 |
commit | 652e497761183219a9cef2b2274a6de26c39e787 (patch) | |
tree | e71583ee64367d01bd404b4422ea7e5b760f4c92 /series/trunk/includes | |
parent | 0a7b6e0a31bdb0aa14aa09822ef016edd10b33e4 (diff) | |
download | instadisc-652e497761183219a9cef2b2274a6de26c39e787.tar.gz instadisc-652e497761183219a9cef2b2274a6de26c39e787.tar.bz2 instadisc-652e497761183219a9cef2b2274a6de26c39e787.zip |
Series: Added instaDisc_getSubscriptionByID()
Refs #53
Diffstat (limited to 'series/trunk/includes')
-rw-r--r-- | series/trunk/includes/instadisc.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/series/trunk/includes/instadisc.php b/series/trunk/includes/instadisc.php index 7334b6f..5fb3cd9 100644 --- a/series/trunk/includes/instadisc.php +++ b/series/trunk/includes/instadisc.php | |||
@@ -121,4 +121,13 @@ function instaDisc_isAdmin($username) | |||
121 | return ($username == instaDisc_getConfig('adminUser')); | 121 | return ($username == instaDisc_getConfig('adminUser')); |
122 | } | 122 | } |
123 | 123 | ||
124 | function instaDisc_getSubscriptionByID($id) | ||
125 | { | ||
126 | $getsub = "SELECT * FROM subscriptions WHERE id = " . $id; | ||
127 | $getsub2 = mysql_query($getsub); | ||
128 | $getsub3 = mysql_fetch_array($getsub2); | ||
129 | |||
130 | return $getsub3; | ||
131 | } | ||
132 | |||
124 | ?> | 133 | ?> |