PHP interesse |
|
Zou iemand mij wellicht hiermee verder kunnen helpen.
Ik blijft de volgende fout krijgen
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/clanlist.php on line 83
Warning : mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home /clanlist .php on line 83
Dit is wat er staat op regel 78 tot 87
print " <tr><td class=\"subTitle\" style=\"letter-spacing: normal;\"><b>$clanlist_partij</b></td> <td class=\"subTitle\" style=\"letter-spacing: normal;\" width=125><b>$clanlist_par</b></td>\n";
$dbres = mysql_query("SELECT `name`,`owner`,`type`,`def_lvl1` FROM `[clans]` ORDER BY `type`");
while($clan = mysql_fetch_assoc($dbres)) {
$power = 0;
$dbres2 = mysql_query("SELECT `attack`,`defence`,`clicks`,`type` FROM `gebruiker` WHERE `clan`='{$clan->name}'");
while($member = mysql_fetch_assoc($dbres2))
$power += round(($member['attack']+$member['defence'])/2+$member['clicks']*5);
$power += ($clan['def_lvl1']*1500)/2;
$clanpower[$clan['type']][$clan['name']] = $power;
}
print " <tr><td class=\"subTitle\" style=\"letter-spacing: normal;\"><b>$clanlist_partij</b></td> <td class=\"subTitle\" style=\"letter-spacing: normal;\" width=125><b>$clanlist_par</b></td>\n"; $dbres = mysql_query("SELECT `name`,`owner`,`type`,`def_lvl1` FROM `[clans]` ORDER BY `type`"); $power = 0; $dbres2 = mysql_query("SELECT `attack`,`defence`,`clicks`,`type` FROM `gebruiker` WHERE `clan`='{$clan->name}'"); $power += round(($member['attack']+$member['defence'])/2+$member['clicks']*5); $power += ($clan['def_lvl1']*1500)/2; $clanpower[$clan['type']][$clan['name']] = $power; }
Alles werkt voor de rest wel correct, het is alleen dat deze foutmelding blijft verschijnen en wat ik dan ook graag opgelost zou willen hebben.
Het volledige script is: http://www.plaatscode.be/13593/
Alvast bedankt,
|