Home > Backend Development > PHP Tutorial > 大家帮忙看看小弟我这是什么东东

大家帮忙看看小弟我这是什么东东

WBOY
Release: 2016-06-13 11:57:42
Original
917 people have browsed it

大家帮忙看看我这是什么错误
$sql ="";比较长,在phpmyadmin成功执行并查出数据
$res = mysql_query($sql);//返回资源类型
放到代码中用mysql_fetch_assoc($res)在本地没错误
但是上传到服务器,mysql_fetch_assoc($res)就直接返回false
难道mysql_fetch_assoc()跟环境有关吗?


------解决方案--------------------
你的在服务器上var_dump($res);有结果集么?

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template