Hallo, ich bin neu hier und auch noch ein ziemlicher Neuling in sachen PHP und MySQL und ähnlichem. Ich habe ein kleines Problem und zwar:
der entsprechende Code dazu ist:
und im gesamten:
Es wäre schön, wenn hier jemand eine Antwort hat, weiß nämlich nicht wie ich das Problem lösen kann...
Warning: mysql_connect(): Access denied for user: 'apache@localhost' (Using password: NO) in /usr/export/www/vhosts/funnetwork/hosting/dennisehmke/inc/functions.inc.php on line 7
$connection = mysql_connect($db['host'],$db['uid'],$db['pwd']);
function load_content_articles()
{
include('inc/mysql.inc.php');
$tmprslt = '';
$connection = mysql_connect($db['host'],$db['uid'],$db['pwd']);
if($connection)
{
mysql_select_db($db['db']);
$sql = 'SELECT id, title,
UNIX_TIMESTAMP(datetime) AS datetime
FROM articles
WHERE visible > -1 ORDER BY datetime ASC';
$result = mysql_query($sql);
if($result)
{
while($articles = mysql_fetch_object($result))
{
$tmprslt .= StrFTime('%d.%m.%Y %H:%M:%S ',
$articles->datetime);
$tmprslt .= "<a href=\?PHP_SELF?cmd=articlesdet
$id=articles->id\">
$articles->title</a>
\n";
}
}
mysql_close();
}
return $tmprslt;
}
{
include('inc/mysql.inc.php');
$tmprslt = '';
$connection = mysql_connect($db['host'],$db['uid'],$db['pwd']);
if($connection)
{
mysql_select_db($db['db']);
$sql = 'SELECT id, title,
UNIX_TIMESTAMP(datetime) AS datetime
FROM articles
WHERE visible > -1 ORDER BY datetime ASC';
$result = mysql_query($sql);
if($result)
{
while($articles = mysql_fetch_object($result))
{
$tmprslt .= StrFTime('%d.%m.%Y %H:%M:%S ',
$articles->datetime);
$tmprslt .= "<a href=\?PHP_SELF?cmd=articlesdet
$id=articles->id\">
$articles->title</a>
\n";
}
}
mysql_close();
}
return $tmprslt;
}
Es wäre schön, wenn hier jemand eine Antwort hat, weiß nämlich nicht wie ich das Problem lösen kann...
Kommentar