From c9b6934be5df7609fec1e7cc4983b51f03b2e6ab Mon Sep 17 00:00:00 2001 From: atomaka Date: Tue, 4 Oct 2011 05:13:01 -0400 Subject: [PATCH] Describe database properly in config file. --- public_html/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/index.php b/public_html/index.php index 795b0bc..00e13c1 100644 --- a/public_html/index.php +++ b/public_html/index.php @@ -5,7 +5,7 @@ $data = json_decode(file_get_contents('../data/index.txt')); // retrieve links from database $db_config = json_decode(file_get_contents('../conf/database.conf')); include('lib/database.php'); -$db = new Database($db_config->hostname,$db_config->username,$db_config->password,$db_config->table); +$db = new Database($db_config->hostname,$db_config->username,$db_config->password,$db_config->database); $links = $db->query("SELECT id,url,text,status,released_date FROM wia_links WHERE status = 2 OR status = 3 ORDER BY released_date DESC LIMIT 15"); ?>