<?
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没问题
我所有页面都是调用这个连接配置文件
唯独这个出问题,请大家帮我看看
解决方案 »
- 帮忙写一个正则?感激。。
- 帮忙$_SERVER["HTTP_REFERER"] 获取客户端浏览过的网页
- 请大家帮忙啊,有是乱码啊
- Xdebug PHP
- 如何自定义php的错误处理器
- LINUX下路径的问题
- php有删除目录的函数吗?
- Php怎么做无闪烁刷新的聊天室!用socket可以做吗?asp里面有好多讨论,不过没有在php里面看到过!
- 执行那个.sql文件时却出错了,出现的是文本内容,、哪 错了?
- 怎样让一个文件只有php程序可以打开而浏览者无法通过浏览器观看?
- 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里运行一下看