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

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

WBOY
WBOYOriginal
2016-06-13 11:57:42922browse

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


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

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