hallo bowling,
vorher ging mein modul ja nur seit dem ich das update auf 0.1.7. gemacht habe wird nichts mehr angezeigt.
schau mal bitte
<?php
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
if(!defined("AV_MODNAME")){define("AV_MODNAME","Avatar");}
$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 "<script type=\"text/javascript\" src=\"http://www.sponsorads.de/script.php?s=8514\"></script>\n";
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");
?>
Hi,
welche Fehlermeldung kommt denn?
David
Fotos
Notice: Undefined variable: result in /home/g/gecealem.de/public_html/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: /modules.php # line: 114, cmd: include_once(null, /modules/New
HI,
entferne bitte mal die Variable $limit... Die hat da gar nichts zu suchen :o!
Und: Bitte keine Doppelposts ;)
David
habe ich entfernt...aber es wird nichts angezeigt...ich verstehe das nicht...es funktinierte vor dem update auf 0.1.7.
<?php
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
if(!defined("AV_MODNAME")){define("AV_MODNAME","Avatar");}
$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);
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");
?>
kannst du mir dein modul mal schicken vieleicht kann ich ja mal schauen ob ich den fehler finde :thumbup:
yasin_lion_stallion@hotmail.com
das ist das modul oben
nur dieser code? ist das nicht eher ein Block?
das ist die index vom modul
mit der kann ich leider nix anfangen und kannst du mir sie als komplette struktur senden?