Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in E:\PHP\wamp\www\lsr\lsr.php on line 42

类似于这样的错误:

其实大多数的情况下,都是SQL语句书写错了,特别是这种情况:

select * from order;

应该写成:

select * from `order`;(那不是单引号,而是tab上面那个按键)

出现这样的错误,意思是,你的SQL中有和数据库中的关键字重复了,所以才要加上那个符号来区分

原文地址:https://www.cnblogs.com/tommy-huang/p/4208969.html