Warning: mysql_fetch_assoc():
Posted: Sat May 03, 2008 9:41 am
here is my error
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/gaogier/public_html/admin2.php on line 454
I know all the code is not there my file is over 20000 char too long
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/gaogier/public_html/admin2.php on line 454
Code: Select all
function calcitem($calc){
$calc1 = str_replace("calc", "", $calc);
echo '<p><font class="adminheader">Caclulator Item Admin for '.$calc1.'</font></p>';
echo "<TABLE border=\"0\" width=\"89%\" class=monster>\n";
echo "<TR><TD class=title><center>Item Name</center></td><td class=title><center>Level - XP</center></TD><td class=title><center>Edit</center></TD</TR>\n";
/* query for monsters */
$query = "SELECT id, item, members, level, xp FROM ".$calc." ORDER BY level, item ASC";
$result = mysql_query ($query);
while ($row = mysql_fetch_assoc ($result)) { /*error line */
/* display monsters in a table */
/* place table row data in
* easier to use variables.
*/
$count = $count + 1;
$name = $row['item'];
$mem = $row['members'];
if ($mem == "1"){