Fehlermeldung bei einem Skript!

  • Hallo!


    Bei mir kommt folgende Fehlermeldung wenn ich ein skript aufrufe!


    Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /usr/export/www/hosting/timedance/modules/Nickpage/index.php on line 42


    angezeigt wird alles, aber diese Fehlermeldung kommt! Was muss ich da ändern?


    Vielleicht kann mir wer helfen!

  • sorry das mit dem Code einfügen hab ich nicht gewusst! Und naja, struckturiert wärs normal so wie ich da oben das ausgegeben habe! Es ist sonst alles gut struckturiert bis auf zeile 42!


    hier mal als code ausgespuckt:



    Code
    1. cookiedecode($user);$decodename = $cookie[1];$userproof=mysql_query("select uname from $user_prefix"._users." where uname='$decodename'");list($checkname) = mysql_fetch_row($userproof); function NpStart(){global $np_memberpath, $checkname, $nukeurl, $user, $admin, $module_name, $bgcolor3, $user_prefix, $prefix, $dbi, $adminmail, $np_capacity, $np_scolorbg, $np_scolortxt;if (!is_user($user) && !is_admin($admin)){include ("header.php");OpenTable();echo "<div align=\"center\">";echo "<p><font class=\"title\"><strong>! "._NP_ERROR." !</strong></font></p>";echo "<p>"._NP_REGONLY1."</p>";echo "<p><strong>"._NP_REGONLY2."</strong></p>";echo "<p>"._NP_REGONLY3.".</p>";echo "<p>"._NP_REGONLY4." (<a href=\"modules.php?name=Your_Account\">"._NP_REGONLY5."</a>)</p>";echo "</div>";exit();CloseTable();} else {if (!is_admin($admin)){$badcols = sql_num_rows(sql_query("select np_baduser from ".$prefix."_mynp_badlist where np_baduser LIKE '$checkname'", $dbi), $dbi);}if ($badcols != 0) {include ("header.php");OpenTable();echo "<div align=\"center\">";echo "<p><font class=\"title\"><strong>! "._NP_ERROR." !</strong></font></p>";echo "<p>"._NP_BARRIER1."</p>";echo "<p><strong>"._NP_BARRIER2."!</strong></p>";echo "<p>"._NP_ERROR3."</p>";echo "<p>[ <a href=\'mailto:$adminmail\'>'._NP_EMAIL.'</a> | <a href=\'modules.php?name=Feedback\'>'._NP_FEEDBACK.'</a> ]</p>";echo "</div>";exit();CloseTable();} else {$introcheck = sql_num_rows(sql_query("select npuid from ".$prefix."_mynp_data where np_uname='$checkname'", $dbi), $dbi);if ($introcheck == 0) {include ("header.php");OpenTable2();echo "<table cellspacing=\"2\" cellpadding=\"2\" align=\"center\"><tr>"; echo "<td align=\"center\"><span style=\"background-color:$bgcolor3; padding:5px\"><font class=\"title\"><strong> "._NP_BOXHEADER." </strong></font></span></td>";echo "</tr></table>";CloseTable2(); echo "<br>";OpenTable();echo "<table cellspacing=\"2\" cellpadding=\"2\" align=\"center\">";echo "<tr><td colspan=\"2\" align=\"center\" valign=\"top\">";echo "<div align=\"center\"><strong>"._NP_WELCOME." $checkname!</strong></div></td>";echo "</tr><tr>";echo "<td colspan=\"2\" align=\"center\" valign=\"top\">";echo "<div align=\"center\">&nbsp;</div></td>";echo "</tr><tr>";echo "<td colspan=\"2\" align=\"center\" valign=\"top\">";echo "<div align=\"center\">"._NP_NONICK1.". "._NP_NONICK2.":</div></td>";echo "</tr><tr>"; echo "<td colspan=\"2\" align=\"center\" valign=\"top\">"; $usertemp = $checkname;$doname = $checkname;echo "<span style=\"background-color:$bgcolor3; padding:2px\"><font class=\"content\"><strong>- <a href=\"modules.php?name=$module_name&amp;op=NpCreate&amp;do=$dona me\">"._NP_MAKENICK."</a> -</strong></font></span></td>";echo "</tr><tr>"; echo "<td colspan=\"2\" align=\"center\" valign=\"top\">&nbsp;</td>";echo "</tr><tr>";echo "<td colspan=\"2\" align=\"center\" valign=\"top\">"; if ($np_memberpath != "") { $usertemp = "$np_memberpath/$usertemp"; } else { $usertemp = $usertemp; }echo "<div align=\"left\">"._NP_SYSWILL1." (<em>$nukeurl/$usertemp</em>) "._NP_SYSWILL2."</div></td>";echo "</tr><tr>"; echo "<td width=\"10\" align=\"center\" valign=\"top\"><div align=\"center\">•</div></td>";echo "<td>"._NP_YOUCAN1."</td>";echo "</tr><tr>"; echo "<td width=\"10\" align=\"center\" valign=\"top\"><div align=\"center\">•</div></td>";echo "<td>"._NP_YOUCAN2."</td>";echo "</tr><tr>";echo "<td width=\"10\" align=\"center\" valign=\"top\"><div align=\"center\">•</div></td>";echo "<td>"._NP_YOUCAN3."</td>";echo "</tr><tr>";echo "<td width=\"10\" align=\"center\" valign=\"top\"> <div align=\"center\">•</div></td>";echo "<td>"._NP_YOUCAN4."</td>";echo "</tr><tr>";echo "<td width=\"10\" align=\"center\" valign=\"top\"><div align=\"center\">•</div></td>";echo "<td>"._NP_YOUCAN5."</td>";echo "</tr><tr>";echo "<td width=\"10\" align=\"center\" valign=\"top\"><div align=\"center\">•</div></td>";echo "<td>"._NP_YOUCAN6."</td>";echo "</tr><tr>";echo "<td colspan=\"2\" align=\"center\" valign=\"top\"><div align=\"left\">&nbsp;</div></td>";echo "</tr></table>";CloseTable();echo "<br>";OpenTable();echo "<table cellspacing=\"2\" cellpadding=\"2\" align=\"center\"><tr>";echo "<td colspan=\"2\" align=\"center\" valign=\"top\"><div align=\"left\"><strong>"._NP_RULESHEAD.":</strong></div></td>";echo "</tr><tr>"; echo "<td width=\"10\" align=\"center\" valign=\"top\"><div align=\"center\">•</div></td>";echo "<td align=\"center\" valign=\"top\"><div align=\"left\">"._NP_RULES1."</div></td></tr>";echo "<tr><td width=\"10\" align=\"center\" valign=\"top\"><div align=\"center\">•</div></td>";echo "<td align=\"center\" valign=\"top\">";echo "<div align=\"left\">"._NP_RULES2."</div></td>";echo "</tr><tr>"; echo "<td width=\"10\" align=\"center\" valign=\"top\"><div align=\"center\">•</div></td>";echo "<td align=\"center\" valign=\"top\">";echo "<div align=\"left\">"._NP_RULES3."</div></td>";echo "</tr></table>";CloseTable();} else {NpHead();$pageinfo=mysql_query("select np_uname, np_urlname, np_status, np_service, np_mempic1, np_mempic2, np_mempic3, np_counter, np_counterdata, np_scolorbg, np_scolortxt, np_lastedit from $prefix"._mynp_data." where np_uname='$checkname'");list($np_uname, $np_urlname, $np_status, $np_service, $np_mempic1, $np_mempic2, $np_mempic3, $np_counter, $np_counterdata, $np_scolorbg, $np_scolortxt, $np_lastedit) = mysql_fetch_row($pageinfo);OpenTable();echo "<table cellspacing=\"2\" cellpadding=\"2\" align=\"center\"><tr>";echo "<td colspan=\"2\" align=\"center\"><span style=\"background-color:$bgcolor3; padding:5px\"><font class=\"title\"><strong> "._NP_NPSTATS.": </strong></font></span></td>";echo "</tr><tr>"; echo "<td>&nbsp;</td>";echo "</tr><tr>";echo "<td colspan=\"2\" align=\"center\"><strong>"._NP_NPINFO.":</strong></td>";echo "</tr><tr>"; if ($np_lastedit == "") { $np_lastedit = "<em>?</em>"; } else {list($np_datey, $np_datem, $np_dated) = split ('[-]', $np_lastedit);}echo "<td>"._NP_LASTEDIT.":</td><td><strong>$np_datem.$np_dated.$np_datey</strong></td>";echo "</tr><tr>"; echo "<td>"._NP_NPSPACE.":</td><td><strong>$np_capacity</strong> "._NP_KBYTE."</td>";echo "</tr><tr>"; echo "<td>"._NP_SHOWCOUNTER.":</td>";if ($np_counter == 1) {echo "<td><strong>"._NP_ISACTIVE."</strong></td>";} else {echo "<td><strong>"._NP_ISINACTIVE."</strong></td>";}echo "</tr><tr>"; echo "<td>"._NP_NPHITS.":</td><td><strong>$np_counterdata</strong></td>";echo "</tr><tr>";echo "<td>"._NP_CANUPLOAD.":</td>";$pics = 3;if ($np_mempic1 != "") { $pics = $pics-1; } if ($np_mempic2 != "") { $pics = $pics-1; } if ($np_mempic3 != "") { $pics = $pics-1; }echo "<td><strong>$pics</strong></td>";echo "</tr><tr>"; echo "<td>"._NP_STATUS.":</td>";if ($np_status == 2) {echo "<td><span style=\"background-color:$bgcolor3; padding:5px\"><em><strong>! "._NP_BLOCKED." !</strong> (*)</em></span></td>";} elseif($np_status == 1) {echo "<td><strong>"._NP_ISACTIVE."</strong></td>";} else {echo "<td><strong>"._NP_ISACTIVE."</strong> ("._NP_NOCONTENT.")</td>";}echo "<td colspan=\"2\"><div align=\"center\">&nbsp;</div></td>";echo "</tr><tr>"; echo "<td colspan=\"2\" align=\"center\"><strong>"._NP_SPSTATUS.":</strong></td>";echo "</tr><tr>";echo "<td colspan=\"2\" align=\"center\">("._NP_WORKONIT.")</td>";echo "</tr><tr>"; echo "<td colspan=\"2\"><div align=\"center\">"; echo "<form method=POST action=modules.php?name=".$module_name."&amp;op=NpDatabase>";echo "<input type=hidden name=np_dbset value=\"2\">";echo "<select name=\"xnp_service\">";if ($np_service == 0) {echo "<option value=\"0\" selected>"._NP_NORMAL."</option>";echo "<option value=\"1\">"._NP_SERVICE."</option>";} else {echo "<option value=\"1\" selected>"._NP_SERVICE."</option>";echo "<option value=\"0\">"._NP_NORMAL."</option>";}echo "</select></div></td>";echo "</tr><tr>";echo "<td colspan=\"2\" align=\"center\"><strong>"._NP_SERVICE." - "._NP_COLOURSET.":</strong></div></td>";echo "</tr><tr>";echo "<td align=\"center\">"._NP_PAGECOL.":</td>";echo "<td align=\"center\">"._NP_TXTCOL.":</td>";echo "</tr><tr>";echo "<td align=\"center\">";echo "<select name=\"xnp_scolorbg\">";if ($np_scolorbg == "white") { echo "<option style=\"color:black;\" value=\"white\" selected>"._NP_COLOR_WHITE." (#FFFFFF)</option>"; } else { echo "<option style=\"color:black;\" value=\"white\">"._NP_COLOR_WHITE." (#FFFFFF)</option>"; }if ($np_scolorbg == "hotpink") { echo "<option style=\"color:hotpink;\" value=\"hotpink\" selected>"._NP_COLOR_HOTPINK." (#FF69B4)</option>"; } else { echo "<option style=\"color:hotpink;\" value=\"hotpink\">"._NP_COLOR_HOTPINK." (#FF69B4)</option>"; }if ($np_scolorbg == "yellow") { echo "<option style=\"color:yellow;\" value=\"yellow\" selected>"._NP_COLOR_YELLOW." (#FFFF00)</option>"; } else { echo "<option style=\"color:yellow;\" value=\"yellow\">"._NP_COLOR_YELLOW." (#FFFF00)</option>"; }if ($np_scolorbg == "gold") { echo "<option style=\"color:gold;\" value=\"gold\" selected>"._NP_COLOR_GOLD." (#FFD700)</option>"; } else { echo "<option style=\"color:gold;\" value=\"gold\">"._NP_COLOR_GOLD." (#FFD700)</option>"; }if ($np_scolorbg == "orange") { echo "<option style=\"colorrange;\" value=\"orange\" selected>"._NP_COLOR_ORANGE." (#FFA500)</option>"; } else { echo "<option style=\"colorrange;\" value=\"orange\">"._NP_COLOR_ORANGE." (#FFA500)</option>"; }if ($np_scolorbg == "coral") { echo "<option style=\"color:coral;\" value=\"coral\" selected>"._NP_COLOR_CORAL." (#FF7F50)</option>"; } else { echo "<option style=\"color:coral;\" value=\"coral\">"._NP_COLOR_CORAL." (#FF7F50)</option>"; }if ($np_scolorbg == "tomato") { echo "<option style=\"color:tomato;\" value=\"tomato\" selected>"._NP_COLOR_TOMATO." (#FF6347)</option>"; } else { echo "<option style=\"color:tomato;\" value=\"tomato\">"._NP_COLOR_TOMATO." (#FF6347)</option>"; }if ($np_scolorbg == "red") { echo "<option style=\"color:red;\" value=\"red\" selected>"._NP_COLOR_RED." (#FF0000)</option>"; } else { echo "<option style=\"color:red;\" value=\"red\">"._NP_COLOR_RED." (#FF0000)</option>"; }if ($np_scolorbg == "crimson") { echo "<option style=\"color:crimson;\" value=\"crimson\" selected>"._NP_COLOR_CRIMSON." (#DC143C)</option>"; } else { echo "<option style=\"color:crimson;\" value=\"crimson\">"._NP_COLOR_CRIMSON." (#DC143C)</option>"; }if ($np_scolorbg == "brown") { echo "<option style=\"color:brown;\" value=\"brown\" selected>"._NP_COLOR_BROWN." (#A52A2A)</option>"; } else { echo "<option style=\"color:brown;\" value=\"brown\">"._NP_COLOR_BROWN." (#A52A2A)</option>"; }if ($np_scolorbg == "olive") { echo "<option style=\"colorlive;\" value=\"olive\" selected>"._NP_COLOR_OLIVE." (#808000)</option>"; } else { echo "<option style=\"colorlive;\" value=\"olive\">"._NP_COLOR_OLIVE." (#808000)</option>"; }if ($np_scolorbg == "green") { echo "<option style=\"color:green;\" value=\"green\" selected>"._NP_COLOR_GREEN." (#008000)</option>"; } else { echo "<option style=\"color:green;\" value=\"green\">"._NP_COLOR_GREEN." (#008000)</option>"; }if ($np_scolorbg == "seagreen") { echo "<option style=\"color:seagreen;\" value=\"seagreen\" selected>"._NP_COLOR_SEA_GREEN." (#2E8B57)</option>"; } else { echo "<option style=\"color:seagreen;\" value=\"seagreen\">"._NP_COLOR_SEA_GREEN." (#2E8B57)</option>"; }if ($np_scolorbg == "darkblue") { echo "<option style=\"color:darkblue;\" value=\"darkblue\" selected>"._NP_COLOR_DARK_BLUE." (#00008B)</option>"; } else { echo "<option style=\"color:darkblue;\" value=\"darkblue\">"._NP_COLOR_DARK_BLUE." (#00008B)</option>"; }if ($np_scolorbg == "indigo") { echo "<option style=\"color:indigo;\" value=\"indigo\" selected>"._NP_COLOR_INDIGO." (#4B0082)</option>"; } else { echo "<option style=\"color:indigo;\" value=\"indigo\">"._NP_COLOR_INDIGO." (#4B0082)</option>"; }if ($np_scolorbg == "darkmagenta") { echo "<option style=\"color:darkorchid;\" value=\"darkmagenta\" selected>"._NP_COLOR_DARK_ORCHID." (#8B008B)</option>"; } else { echo "<option style=\"color:darkmagenta;\" value=\"darkmagenta\">"._NP_COLOR_DARK_ORCHID." (#8B008B)</option>"; }if ($np_scolorbg == "blue") { echo "<option style=\"color:blue;\" value=\"blue\" selected>"._NP_COLOR_BLUE." (#0000FF)</option>"; } else { echo "<option style=\"color:blue;\" value=\"blue\">"._NP_COLOR_BLUE." (#0000FF)</option>"; }if ($np_scolorbg == "darkcyan") { echo "<option style=\"color:darkcyan;\" value=\"darkcyan\" selected>"._NP_COLOR_CYAN." (#008B8B)</option>"; } else { echo "<option style=\"color:darkcyan;\" value=\"darkcyan\">"._NP_COLOR_CYAN." (#008B8B)</option>"; }if ($np_scolorbg == "cadetblue") { echo "<option style=\"color:cadetblue;\" value=\"cadetblue\" selected>"._NP_COLOR_CADET_BLUE." (#5F9EA0)</option>"; } else { echo "<option style=\"color:cadetblue;\" value=\"cadetblue\">"._NP_COLOR_CADET_BLUE." (#5F9EA0)</option>"; }if ($np_scolorbg == "lightsteelblue") { echo "<option style=\"color:lightsteelblue;\" value=\"lightsteelblue\" selected>"._NP_COLOR_STEELBLUE." (#B0C4DE)</option>"; } else { echo "<option style=\"color:lightsteelblue;\" value=\"lightsteelblue\">"._NP_COLOR_STEELBLUE." (#B0C4DE)</option>"; }if ($np_scolorbg == "silver") { echo "<option style=\"color:silver;\" value=\"silver\" selected>"._NP_COLOR_SILVER." (#C0C0C0)</option>"; } else { echo "<option style=\"color:silver;\" value=\"silver\">"._NP_COLOR_SILVER." (#C0C0C0)</option>"; }if ($np_scolorbg == "gray") { echo "<option style=\"color:gray;\" value=\"gray\" selected>"._NP_COLOR_GRAY." (#808080)</option>"; } else { echo "<option style=\"color:gray;\" value=\"gray\">"._NP_COLOR_GRAY." (#808080)</option>"; }if ($np_scolorbg == "black") { echo "<option style=\"color:black;\" value=\"black\" selected>"._NP_COLOR_BLACK." (#000000)</option>"; } else { echo "<option style=\"color:black;\" value=\"black\">"._NP_COLOR_BLACK." (#000000)</option>"; }echo "</select>";echo "</td><td align=\"center\">";echo "<select name=\"xnp_scolortxt\">";if ($np_scolortxt == "white") { echo "<option style=\"color:black;\" value=\"white\" selected>"._NP_COLOR_WHITE." (#FFFFFF)</option>"; } else { echo "<option style=\"color:black;\" value=\"white\">"._NP_COLOR_WHITE." (#FFFFFF)</option>"; }if ($np_scolortxt == "hotpink") { echo "<option style=\"color:hotpink;\" value=\"hotpink\" selected>"._NP_COLOR_HOTPINK." (#FF69B4)</option>"; } else { echo "<option style=\"color:hotpink;\" value=\"hotpink\">"._NP_COLOR_HOTPINK." (#FF69B4)</option>"; }if ($np_scolortxt == "yellow") { echo "<option style=\"color:yellow;\" value=\"yellow\" selected>"._NP_COLOR_YELLOW." (#FFFF00)</option>"; } else { echo "<option style=\"color:yellow;\" value=\"yellow\">"._NP_COLOR_YELLOW." (#FFFF00)</option>"; }if ($np_scolortxt == "gold") { echo "<option style=\"color:gold;\" value=\"gold\" selected>"._NP_COLOR_GOLD." (#FFD700)</option>"; } else { echo "<option style=\"color:gold;\" value=\"gold\">"._NP_COLOR_GOLD." (#FFD700)</option>"; }if ($np_scolortxt == "orange") { echo "<option style=\"colorrange;\" value=\"orange\" selected>"._NP_COLOR_ORANGE." (#FFA500)</option>"; } else { echo "<option style=\"colorrange;\" value=\"orange\">"._NP_COLOR_ORANGE." (#FFA500)</option>"; }if ($np_scolortxt == "coral") { echo "<option style=\"color:coral;\" value=\"coral\" selected>"._NP_COLOR_CORAL." (#FF7F50)</option>"; } else { echo "<option style=\"color:coral;\" value=\"coral\">"._NP_COLOR_CORAL." (#FF7F50)</option>"; }if ($np_scolortxt == "tomato") { echo "<option style=\"color:tomato;\" value=\"tomato\" selected>"._NP_COLOR_TOMATO." (#FF6347)</option>"; } else { echo "<option style=\"color:tomato;\" value=\"tomato\">"._NP_COLOR_TOMATO." (#FF6347)</option>"; }if ($np_scolortxt == "red") { echo "<option style=\"color:red;\" value=\"red\" selected>"._NP_COLOR_RED." (#FF0000)</option>"; } else { echo "<option style=\"color:red;\" value=\"red\">"._NP_COLOR_RED." (#FF0000)</option>"; }if ($np_scolortxt == "crimson") { echo "<option style=\"color:crimson;\" value=\"crimson\" selected>"._NP_COLOR_CRIMSON." (#DC143C)</option>"; } else { echo "<option style=\"color:crimson;\" value=\"crimson\">"._NP_COLOR_CRIMSON." (#DC143C)</option>"; }if ($np_scolortxt == "brown") { echo "<option style=\"color:brown;\" value=\"brown\" selected>"._NP_COLOR_BROWN." (#A52A2A)</option>"; } else { echo "<option style=\"color:brown;\" value=\"brown\">"._NP_COLOR_BROWN." (#A52A2A)</option>"; }if ($np_scolortxt == "olive") { echo "<option style=\"colorlive;\" value=\"olive\" selected>"._NP_COLOR_OLIVE." (#808000)</option>"; } else { echo "<option style=\"colorlive;\" value=\"olive\">"._NP_COLOR_OLIVE." (#808000)</option>"; }if ($np_scolortxt == "green") { echo "<option style=\"color:green;\" value=\"green\" selected>"._NP_COLOR_GREEN." (#008000)</option>"; } else { echo "<option style=\"color:green;\" value=\"green\">"._NP_COLOR_GREEN." (#008000)</option>"; }if ($np_scolortxt == "seagreen") { echo "<option style=\"color:seagreen;\" value=\"seagreen\" selected>"._NP_COLOR_SEA_GREEN." (#2E8B57)</option>"; } else { echo "<option style=\"color:seagreen;\" value=\"seagreen\">"._NP_COLOR_SEA_GREEN." (#2E8B57)</option>"; }if ($np_scolortxt == "darkblue") { echo "<option style=\"color:darkblue;\" value=\"darkblue\" selected>"._NP_COLOR_DARK_BLUE." (#00008B)</option>"; } else { echo "<option style=\"color:darkblue;\" value=\"darkblue\">"._NP_COLOR_DARK_BLUE." (#00008B)</option>"; }if ($np_scolortxt == "indigo") { echo "<option style=\"color:indigo;\" value=\"indigo\" selected>"._NP_COLOR_INDIGO." (#4B0082)</option>"; } else { echo "<option style=\"color:indigo;\" value=\"indigo\">"._NP_COLOR_INDIGO." (#4B0082)</option>"; }if ($np_scolortxt == "darkmagenta") { echo "<option style=\"color:darkorchid;\" value=\"darkmagenta\" selected>"._NP_COLOR_DARK_ORCHID." (#8B008B)</option>"; } else { echo "<option style=\"color:darkmagenta;\" value=\"darkmagenta\">"._NP_COLOR_DARK_ORCHID." (#8B008B)</option>"; }if ($np_scolortxt == "blue") { echo "<option style=\"color:blue;\" value=\"blue\" selected>"._NP_COLOR_BLUE." (#0000FF)</option>"; } else { echo "<option style=\"color:blue;\" value=\"blue\">"._NP_COLOR_BLUE." (#0000FF)</option>"; }if ($np_scolortxt == "darkcyan") { echo "<option style=\"color:darkcyan;\" value=\"darkcyan\" selected>"._NP_COLOR_CYAN." (#008B8B)</option>"; } else { echo "<option style=\"color:darkcyan;\" value=\"darkcyan\">"._NP_COLOR_CYAN." (#008B8B)</option>"; }if ($np_scolortxt == "cadetblue") { echo "<option style=\"color:cadetblue;\" value=\"cadetblue\" selected>"._NP_COLOR_CADET_BLUE." (#5F9EA0)</option>"; } else { echo "<option style=\"color:cadetblue;\" value=\"cadetblue\">"._NP_COLOR_CADET_BLUE." (#5F9EA0)</option>"; }if ($np_scolortxt == "lightsteelblue") { echo "<option style=\"color:lightsteelblue;\" value=\"lightsteelblue\" selected>"._NP_COLOR_STEELBLUE." (#B0C4DE)</option>"; } else { echo "<option style=\"color:lightsteelblue;\" value=\"lightsteelblue\">"._NP_COLOR_STEELBLUE." (#B0C4DE)</option>"; }if ($np_scolortxt == "silver") { echo "<option style=\"color:silver;\" value=\"silver\" selected>"._NP_COLOR_SILVER." (#C0C0C0)</option>"; } else { echo "<option style=\"color:silver;\" value=\"silver\">"._NP_COLOR_SILVER." (#C0C0C0)</option>"; }if ($np_scolortxt == "gray") { echo "<option style=\"color:gray;\" value=\"gray\" selected>"._NP_COLOR_GRAY." (#808080)</option>"; } else { echo "<option style=\"color:gray;\" value=\"gray\">"._NP_COLOR_GRAY." (#808080)</option>"; }if ($np_scolortxt == "black") { echo "<option style=\"color:black;\" value=\"black\" selected>"._NP_COLOR_BLACK." (#000000)</option>"; } else { echo "<option style=\"color:black;\" value=\"black\">"._NP_COLOR_BLACK." (#000000)</option>"; }echo "</select>";echo "</td></tr></table>";echo "<div align=\"center\"><input type=\"submit\" name=\"Button\" value=\"- "._NP_CHGBTN." -\">";echo "</form><br><div align=\"center\"><strong>"._NP_RULESHEAD.":</strong> "._NP_JSNEEDED."!</div>";CloseTable();echo "<br>";OpenTable();echo "<div align=\"center\">"._NP_YOURURL.": <input type=\"text\" name=\"pageurl\" size=\"60\" maxlength=\"60\" value=\"$nukeurl/$np_urlname\" readonly></div>";CloseTable();echo "<br>";OpenTable();if ($np_status == 2) {echo "<div align=\"center\">(*) "._NP_ERROR3."<br>";echo "[ <a href=\'mailto:$adminmail\'>'._NP_EMAIL.'</a> | <a href=\'modules.php?name=Feedback\'>'._NP_FEEDBACK.'</a> ]</div>";} else {echo "<div align=\"center\"><strong>"._NP_MEMNPHAVE.":</strong>";echo "<form name=\"SelectURL\"><select name=\"picker\">";$callpages=mysql_query("SELECT npuid, np_uname FROM $prefix"._mynp_data." WHERE np_status!='2' ORDER BY np_uname ASC");$countpages = mysql_affected_rows();for($i=1;$i<=$countpages;$i++){list($npuid, $np_uname) = mysql_fetch_row($callpages);echo "<option value=\"modules.php?name=Nickpage&file=nickpage&nick=$np_uname\">$np_uname</option>";}echo "</select>";echo "<br><br><input type=button value=\"- "._NP_HAVEALOOK." -\" onClick=\"GotoURL(this.form)\">";
  • Hmm, ich meckere nur ungerne in einem Forum,
    in dem ich selber noch nicht lange tätig bin, aber:


    Ich hoffe, dass ist nicht dein ernst, hier 700 Zeilen
    unstrukturierten Code zu posten und zu erwarten, dass
    dir da jemand hilft; wenn man allein eine halbe Stunde
    braucht, nur um dieses Pseudozeug wieder außeinander-
    zunehmen.


    Zitat


    Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /usr/export/www/hosting/timedance/modules/Nickpage/index.php on line 42


    Das hat schon einen Sinn, warum php bei Fehlermeldungen Zeilenangaben
    ausgibt. Sinn ist nämlich, dass eine Zeile nicht gerade
    1.537 Wörter (20.947 Zeichen) hat.
    Das Sind nämlich; wenn man diese Ordentlich strukturiert, 631 Zeilen!


    Vielleicht versuchst du erstmal, diesen Zustand; wenn man ihn überhaupt
    noch so nennen darf; zu bereinigen.


    Noch als kleinen Tipp:
    Hast du schonmal nachgezählt, wie oft du echo ""; benutzt?
    (Sorry, aber was soll dieses 'flooding' im Code?; Tippst du so gerne?)

    Zwei Dinge sind Unbestreitbar:

    • In einem Land, in dem Amerika Krieg führt, herrscht nachher Demokratie.

    • Die Erde ist eine Scheibe!

    Aktuelle Abendlektüre: Stephen King, Peter Strauch: Das schwarze Haus (Black House, 2001)
    Aktuelle Bewertung: Abgesehen davon, dass der Roman mal wieder demonstriert, dass der Author geistesgestört ist, sehr träge; wenig Spannung; schlechter Erzählstil. King halt^^!

  • 1. ja ich erwarte von niemanden, dass er mir den ganzen code durchlesen tut(schau obn nach ich habs geschriebn)


    2. ist der code nicht von mir, mit den ganzen echo befehlen hab ich also nichts zu tun=)


    3. bin ich eh gerade am struckturieren=) bei mir ist halt das ganze die zeile 42(zend studio zeigt dies an) =)