可以用
header("location: ../../mana/error.php");
对程序没有得出结果时,转到自定义页面;
或用
die("查询出错")
在查询数据库无结果时,输出字符串。
$m_rows=sql_query($m_sql,$link)or die(L_error);
或
编辑404出错页面
header("location: ../../mana/error.php");
对程序没有得出结果时,转到自定义页面;
或用
die("查询出错")
在查询数据库无结果时,输出字符串。
$m_rows=sql_query($m_sql,$link)or die(L_error);
或
编辑404出错页面
解决方案 »
- php变量:负数比0大?
- 关于php中tidy模块编码问题,有兴趣的来,没分了,不好意思.
- 我安装了php5.2到windows2000中,但是用php页面测试总不成功
- 请问谁有Linux环境下mysql?
- iis6下面运行php5的问题
- 显示问题。
- 接到一个做社区网站的活,大家有没有做这方面的经验?
- PHP专业项目开发实例,中国水电水利出版社,作者是美国人,标价是58元好象,这本书怎么样???想请教一下大哥们!
- <select ...>复选的时候如何接受数据。
- @header($string . "\n", $replace); exit(); } 跳转不过去的难题,求大师们指点迷津
- 这个免费的 php+mysql 空间还真可以用,也很大的,大家快注册呀!
- 如何在PHP中用ADO向Access数据库添加数据?
如果我没有记错,应该是这样
httpd.conf#
# Customizable error response (Apache style)
# these come in three flavors
#
# 1) plain text
#ErrorDocument 500 "The server made a boo boo.
# n.b. the single leading (") s it as text, it does not get output
#
# 2) local redirects
#ErrorDocument 404 /missing.html
# to redirect to local URL /missing.html
#ErrorDocument 404 /cgi-bin/missing_handler.pl
# N.B.: You can redirect to a script or a document using server-side-includes.
#
# 3) external redirects
#ErrorDocument 402 http://some.other_server.com/subscription_info.html
# N.B.: Many of the environment variables associated with the original
# request will *not* be available to such a script.