hallo,
dieses modul zeigt eine leere seite seit dem update auf 0.1.7 an
woran kann das liegen? muss man bei neuen modulen nun was anderes beachten?
<?php
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
$module_name = basename(dirname(__FILE__));
#mxGetLangfile($module_name);
$index = 1;
$foto_query = "SELECT MAX(date),typ,anzahl,aid FROM ${prefix}_avatar GROUP BY date DESC LIMIT 0,30";
$result = sql_query($foto_query);
$limit = sql_num_rows($result);
include("header.php");
OpenTable();
// Listen wir das Zeug auf:
echo "<b>Neuste User Fotos</b>";
echo "<table width=\"95%\" border=\"1\"><tr>\n";
$colcounter=1;
while (list($date,$typ,$anzahl, $aid) = sql_fetch_row($result))
{
$av_end = explode("|",$typ);
echo "<td><center><a href=\"modules.php?name=Userinfo&uname=$aid\"><img src='".MX_PATH_MEMBERAVATAR."/".$av_end[$anzahl-1]."' alt=\"$aid\" border=\"0\" alt=\"\" width=\"100\" height=\"100\" /></a></center></td>";
if (floor($colcounter/3)==1)
{
echo "</tr><tr>\n";
$colcounter=0;
}
$colcounter++;
}
echo "</tr></table>\n";
CloseTable();
include ("footer.php");
?>
Moin :)
(https://forum.pragmamx.org/proxy.php?request=http%3A%2F%2Fwww.sys3.de%2Fsmilie_creator%2Ftext2schild.php%3Fsmilie%3D23%26amp%3Bshieldshadow%3D0%26amp%3Btext%3Dimmer%2520wieder...%2520%26%23039%3BSQL-Fehler%2520anzeigen%26%23039%3B%2520einschalten%2520und%2520diese%2520Fehler%2520hier%2520posten&hash=42f8d3cce47783999739fc0321102cf234af69c7)
Eigentlich dürfte sich ein Update darauf nicht auswirken.
Hängt wohl eher mit dem Avatarmodul zusammen...
komisch...aber vorher lief es ja
hmmm, und, kommen jetzt Fehlermeldungen?
Bei mir kommt ne Meldung, dass er das Feld "date" in der Avatartabelle nicht findet.
Notice: Undefined variable: result in /home/httpd/vhosts/gecealem.com/httpdocs/modules/New-Pic/index.php on line 20
Error sql_fetch_row():
descr: mysql_fetch_row(): supplied argument is not a valid MySQL result resource
details:
file: /modules/New-Pic/index.php # line: 20, cmd: sql_fetch_row(null),
file
also das kommt bei mir...und es wurde ja nichts verändert an dem avatar modul