Hey!
Ich habe mal in die etwas groß geratene Error.Log geschaut und den ein oder anderen Fehler selbst beheben können. Ich bräuchte aber jemanden der mir helfen kann letzen 4 Fehler zu beheben.
Error.log
28-Nov-2010 21:39:25] PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /content/intern/mediadaten.php on line 3
Line 1 - 3
PHP-Code:
<?
$kontostats = mysql_fetch_array(db_query("SELECT COUNT(uid) AS kd_uid , SUM(kontostand) AS kd_kontostand , SUM(angebettelt) AS kd_angebettelt , SUM(kv) AS kd_kv , SUM(bv) AS kd_bv, SUM(einzahlungen) AS kd_einzahlungen, SUM(auszahlungen) AS kd_auszahlungen FROM ".$db_prefix."_kontodaten"));
$werberdaten = mysql_fetch_array(db_query("SELECT SUM(gesamt) AS wd_gesamt FROM ".$db_prefix."_werberdaten"));
Error.log
[28-Nov-2010 21:44:05] PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /lib/header.php on line 12
Line 11 - 13
PHP-Code:
$sql = db_query("SELECT `news` FROM ".$db_prefix."_kontodaten WHERE `uid` = '".$_SESSION['uid']."'");
$news_check = mysql_fetch_array($sql);
if ($news_check['news']==1){
Error.log
[28-Nov-2010 21:44:05] PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /lib/header.php on line 18
Line 18
PHP-Code:
$betteln = mysql_fetch_array(db_query('SELECT SUM(tagesbetteln) AS heute FROM vms_kontodaten'));
Error.log
[29-Nov-2010 00:43:46] PHP Fatal error: Call to undefined function db_query() in /content/betteln.php on line 2
Line 1 -3
PHP-Code:
<?
$ccode_array = mysql_fetch_array(db_query("SELECT * FROM laendercode WHERE IP_FROM<=inet_aton('".$ip."') AND IP_TO>=inet_aton('".$ip."');"));
if($ccode_array['CC2'] == 'DE' OR $ccode_array['CC2'] == 'AT' OR $ccode_array['CC2'] == 'CH'){