diff options
Diffstat (limited to 'php/rss/download-counts.php')
-rw-r--r-- | php/rss/download-counts.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/php/rss/download-counts.php b/php/rss/download-counts.php index 4559647..94d96dc 100644 --- a/php/rss/download-counts.php +++ b/php/rss/download-counts.php @@ -8,11 +8,10 @@ require_once('../cfg/config.php'); // config file require_once(LIB.'/db.php'); // core mysql wrappers -db_connect(DBHOST,DBUSER,DBPASS); // open persistent connection to db -db_select(DBNAME); // select db +DB::connect(DBHOST,DBUSER,DBPASS,DBNAME); // open persistent connection to db // get download counts per product -$data = db_get("SELECT * FROM mirror_products ORDER BY product_name"); +$data = DB::get("SELECT * FROM mirror_products ORDER BY product_name"); // time to go at the end of each item $now = date('G',time()); @@ -52,4 +51,3 @@ foreach ($data as $product) { } echo "\n".'</rdf:RDF>'; -?> |