主题:  请高手快来帮忙!

大菜

职务:普通成员
等级:1
金币:0.0
发贴:117
注册:2002/8/28 13:15:14
#12002/11/1 10:04:29


我做了一个动态新闻图片添加的网页,显示标题和内容的页面都加了一个包含头文件。

可是在测试时,提示找不到该文件。我检查了该文件打开数据库的路径都正确。
我测试别的asp程序没问题,证明可以排除pws和dw的问题,请大家想想怎么解决。
包含文件为:
<%
sub opendata(conn)
set conn=server.createobject("adodb.connection"
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("dbase/shzn.mdb"
end sub

function pb(cdata)
if cdata<>"" then
restr=replace(cdata,chr(13),"
"
restr=replace(restr,chr(32)," "
pb=replace(restr,chr(39),"###"
end if
end function

function repb(recdata)
if recdata<>"" then
restr=replace(recdata,"
",chr(13))
restr=replace(restr," ",chr(32))
repb=replace(restr,"###",chr(39))
end if
end function

%>