deniz
08.08.2008, 00:30
Guten Abend Leute,
wenn ich die Einstellung "display_errors" auf meinem Server freischalte, erhalte ich im Header folgende Fehlermeldung:
Warning: mysql_real_escape_string(): Access denied for user 'web424'@'localhost' (using password: NO) in /srv/www/htdocs/web424/html/lib/functions.lib.php on line 49 Warning: mysql_real_escape_string(): A link to the server could not be established in /srv/www/htdocs/web424/html/lib/functions.lib.php on line 49 Warning: mysql_query(): Access denied for user 'web424'@'localhost' (using password: NO) in /srv/www/htdocs/web424/html/lib/functions.lib.php on line 54 Warning: mysql_query(): A link to the server could not be established in /srv/www/htdocs/web424/html/lib/functions.lib.php on line 54
Hier die Zeilen 40 - 59:
// Mysql Querys
function db_query($sql_tag){
global $count_query;
$count_query++;
$fargs = func_get_args();
if (!empty($fargs)){
$vargs = array();
foreach($fargs as $key => $arg){
$vargs[$key] = mysql_real_escape_string($arg);
}
array_shift($vargs);
$sql_tag = vsprintf($sql_tag,$vargs);
}
if($ret = mysql_query($sql_tag)){
return $ret;
}else{
return 0;
}
}
Habe keinen Fehler im Code gefunden, was läuft denn da falsch?
Danke!
Mfg Denis
wenn ich die Einstellung "display_errors" auf meinem Server freischalte, erhalte ich im Header folgende Fehlermeldung:
Warning: mysql_real_escape_string(): Access denied for user 'web424'@'localhost' (using password: NO) in /srv/www/htdocs/web424/html/lib/functions.lib.php on line 49 Warning: mysql_real_escape_string(): A link to the server could not be established in /srv/www/htdocs/web424/html/lib/functions.lib.php on line 49 Warning: mysql_query(): Access denied for user 'web424'@'localhost' (using password: NO) in /srv/www/htdocs/web424/html/lib/functions.lib.php on line 54 Warning: mysql_query(): A link to the server could not be established in /srv/www/htdocs/web424/html/lib/functions.lib.php on line 54
Hier die Zeilen 40 - 59:
// Mysql Querys
function db_query($sql_tag){
global $count_query;
$count_query++;
$fargs = func_get_args();
if (!empty($fargs)){
$vargs = array();
foreach($fargs as $key => $arg){
$vargs[$key] = mysql_real_escape_string($arg);
}
array_shift($vargs);
$sql_tag = vsprintf($sql_tag,$vargs);
}
if($ret = mysql_query($sql_tag)){
return $ret;
}else{
return 0;
}
}
Habe keinen Fehler im Code gefunden, was läuft denn da falsch?
Danke!
Mfg Denis