From 652e497761183219a9cef2b2274a6de26c39e787 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 14 Sep 2008 16:03:31 +0000 Subject: Series: Added instaDisc_getSubscriptionByID() Refs #53 --- series/trunk/includes/instadisc.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'series/trunk/includes/instadisc.php') 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) return ($username == instaDisc_getConfig('adminUser')); } +function instaDisc_getSubscriptionByID($id) +{ + $getsub = "SELECT * FROM subscriptions WHERE id = " . $id; + $getsub2 = mysql_query($getsub); + $getsub3 = mysql_fetch_array($getsub2); + + return $getsub3; +} + ?> -- cgit 1.4.1