Home >Backend Development >PHP Tutorial > 这个警告不知道如何解决mysql_fetch_array() expects parameter 1 to be resource

这个警告不知道如何解决mysql_fetch_array() expects parameter 1 to be resource

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 13:13:071078browse

这个警告不知道怎么解决mysql_fetch_array() expects parameter 1 to be resource
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /data/multiserv/users/983917/projects/2245004/www/view.php on line 42

本地服务器调试没有出现这个警告,上传到远程服务器就出现了...而且我没有权限修改远程服务器的配置..只能从代码这里来解决

view.php

HTML code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--> PHP
<?php include("conn.php");
$ID=$_GET['id'];
$ID=ceil($ID);
$sql="select * from dianpu where id_dian='$ID' and access='1'";
$query=mysql_query($sql,$mylink);
$result=mysql_fetch_array($query);


?>
<title></title>





店铺名字
电话

食客评分(0~10)

"; echo "评分个数:".$result5['count']; ?>
菜单

"; $i++; } while($result3=mysql_fetch_array($result2)) ; } ?>

 

备注
食客评价
"; $i++; } while($result4=mysql_fetch_array($commentquery,$mylink)); } else { echo "暂无评论,我们期待你的参与"; } ?>

给店家

评分评价

昵称

评论

上一间 /// 下一间

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn