"Access Denied" to database when using fetchEntrie
Posted: Thu Nov 15, 2007 4:59 am
On my website, I'd like one of my main pages to be able to grab blog entries from a specific category, and process them. The script that fetches the entries is located in the parent directory of s9y. s9y is locate in a directory called .serendipity.
Here's the part of my code that's giving me problems:
When my page tries to call this function, I get the following error:
I don't get the same error when accessing the blog directly.
Has anyone seen this error before? How do I get around it?
Here's the part of my code that's giving me problems:
Code: Select all
function getAllVideos() {
chdir('.serendipity');
include 'serendipity_config.inc.php';
$serendipity['GET']['category'] = 'videos';
$entries = serendipity_fetchEntries(null, true);
chdir('..');
return $entries;
}
Code: Select all
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'goodevil'@'localhost' (using password: NO) in /home/goodevil/public_html/joestryker/.serendipity/include/db/mysql.inc.php on line 270Has anyone seen this error before? How do I get around it?