可能重复:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result我在mysql_fetch_assoc收到错误()
我与我的数据库连接,并且似乎是出现在这行代码中的错误:
while($br = mysql_fetch_assoc($brand))
和我的查询我把这个:
$brand = mysql_query("Select * from genratb");
错误说
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\videoshop\index.php on line 166
第一个命令实际上是我行166
添加您的代码..和安排 – Baba
把代码放在'while'循环这里,请。 – undone
阅读http://stackoverflow.com/questions/12769982/reference-what-does-this-error-mean-in-php/12770072#12770072 – Jocelyn