Code: Alles auswählen
hier ist ein hilfe forum für phpbb3, kein empfehlungs dingends für server, da bist in der falschen rubrick
da hast du recht, hatte nur nicht daran gedacht, sorry.
werde mir den tufat mal anschauen.
Danke und Gruß
Roman
Code: Alles auswählen
hier ist ein hilfe forum für phpbb3, kein empfehlungs dingends für server, da bist in der falschen rubrick
zeile 21 ist aus dem folgenden skript:[phpBB Debug] PHP Notice: in file /whosonline-chat.php on line 21: mysql_fetch_row(): supplied argument is not a valid MySQL result resource
[phpBB Debug] PHP Notice: in file /whosonline-chat.php on line 21: mysql_fetch_row(): supplied argument is not a valid MySQL result resource
mit dem da:Jonnsn hat geschrieben:Code: Alles auswählen
<? function who_is_in_chat(){ // MySql Information $user = "db_user"; // Your MySql username $dbhost = 'localhost'; // My SQL Host $pass = "db_password"; // Your MySql password $db = "db_name"; // Your MySql Database $prefix = "x7chat_"; // Your table prefix $expire_time = 240; // The amount of seconds that users can be idle before they are considered offline // This value is setable in the X7 Chat admin panel, you must also set it here. // If the values do not match then the scripts may be inaccurate. // No more editing required mysql_connect($dbhost,$user,$pass); mysql_select_db($db); $exp_time = time()-$expire_time; $q = mysql_query("DELETE FROM {$prefix}online WHERE time<'$exp_time'"); $q = mysql_query("SELECT name FROM {$prefix}online"); $results = array(); while($row = mysql_fetch_row($q)) $results[] = $row[0]; return $results; } function list_totals(){ return count(who_is_in_chat()); } function list_members($sep=", "){ $online = who_is_in_chat(); return implode($sep,$online); } ?>
was stimmt nicht? kann mir schwer vorstellen, dass es bei allen geht und ich der erste bin wo das nicht funktionieren sollte.while($row = mysql_fetch_row($q))
da stimmt allerdings was nichtmit dem da:was stimmt nicht?while($row = mysql_fetch_row($q))
supplied argument is not a valid MySQL result resource
da es nämlich mysql_fetchrow heißtgelieferte argument: mysql_fetch_row ist keine valide MySQL ergebnis ressource
aha...4seven hat geschrieben:da es nämlich mysql_fetchrow heißt
Code: Alles auswählen
Error 404!
/x7chat/index.php
File Not Found
Code: Alles auswählen
[phpBB Debug] PHP Notice: in file /whosonline.php on line 21: mysql_fetch_row(): supplied argument is not a valid MySQL result resource
[phpBB Debug] PHP Notice: in file /whosonline.php on line 21: mysql_fetch_row(): supplied argument is not a valid MySQL result resource
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3537: Cannot modify header information - headers already sent by (output started at /whosonline.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3539: Cannot modify header information - headers already sent by (output started at /whosonline.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3540: Cannot modify header information - headers already sent by (output started at /whosonline.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3541: Cannot modify header information - headers already sent by (output started at /whosonline.php:1)