将网站上传到我的网络服务器后,我收到以下消息:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
in /home1/m1k3ey/public_html/MikeyDev.com/teamdesire/playersheet.php on line 8
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource
in /home1/m1k3ey/public_html/MikeyDev.com/teamdesire/playersheet.php on line 9
我的 PHP 版本是:
PHP Version 5.2.17
我看不到我的代码哪里出错了,任何人都可以帮忙:
mysql_select_db('teamdesire', $link);
$query = "SELECT * FROM playershowercase";
$result = mysql_query($query,$link);
$row = array();
Line 8 > while($row[] = mysql_fetch_array($result));
Line 9 > $count = mysql_num_rows($result);
$random = rand(0,$count-1);