<?
require("conserv.php");
$sql = "SELECT id,ap_man,ap_aname,ap_date,ap_step,ap_num from applylist where ap_dep = '1' and ap_step >= '2' and ap_step<= '4' ORDER BY ASC";
$result=mysql_db_query($mysql_database,$sql,$conn);
while($row = mysql_fetch_row($result))
{
print_r($row);
}
?>会提示Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\mylist.php on line 6上面是截取的出错部分conserv.php没问题
我所有页面都是调用这个连接配置文件
唯独这个出问题,请大家帮我看看
require("conserv.php");
$sql = "SELECT id,ap_man,ap_aname,ap_date,ap_step,ap_num from applylist where ap_dep = '1' and ap_step >= '2' and ap_step<= '4' ORDER BY ASC";
$result=mysql_db_query($mysql_database,$sql,$conn);
while($row = mysql_fetch_row($result))
{
print_r($row);
}
?>会提示Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\mylist.php on line 6上面是截取的出错部分conserv.php没问题
我所有页面都是调用这个连接配置文件
唯独这个出问题,请大家帮我看看
解决方案 »
- cookie保存登录信息 登录成功后setcookie是有值 关闭浏览器在进首页就读取不到值 求解
- rsa加密算法问题
- 如何在页面中显示出调用数据库信息?
- 正则匹配,求帮忙
- PHP的调试日志哪里设置啊?
- php 读取数据库表的 基础问题?
- php冒泡排序主要应用在那些方面,如何去掌握比较好呢
- 网站页面抓取
- $GLOBALS这个数组是怎么用的?有哪些作用?
- 郁闷!!php总是无法和MYSQL连接!还是我写错了?
- http://www.phpchina.com/html/35/64535-32422.html 和 http://hi.baidu.com/riverbend/blog/item/49a7224c6c8399fbd72afc8a.html的 functi
- PHP图像处理问题????
(如果你的asc是字段名,就要写成 order by `asc`)
<?
require("conserv.php");
$sql = "SELECT id,ap_man,ap_aname,ap_date,ap_step,ap_num from applylist where ap_dep = 1 and ap_step >= 2 and ap_step <= 4 ORDER BY ASC";
$result=mysql_query($mysql_database,$sql,$conn);
while($row = mysql_fetch_row($result))
{
print_r($row);
}
?>
别的错我们看不出来了, 你得把库结构贴上来,
或者你自己把这个sql放到mysql里运行一下看