嗨,我尝试从我的数据库中提取一些数据,但我得到了那个错误
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\Users\malasuerte94\Dropbox\MinecraftSv\minecraftsv\SITE\refferal\top.php on line 117
我的代码是
<?php
echo '<table class="table table-hover"><tr><th>Player</th><th>Invitati</th></tr>';
$query6 = mysql_query("SELECT `referrer`, count(1) FROM `ref_invites` GROUP BY `referrer` ORDER BY `count(1)` DESC");
while($row6 = mysql_fetch_assoc($query6))
{
$taracast = $row6['referrer'];
$scor = $row6['count(1)'];
echo "<tr><td>".$taracast." </td><td> ".$scor."</td></tr>";
}
echo "</table>";
?>