请帮忙看看这个程序为什么不能运行?

来源:百度知道 编辑:UC知道 时间:2024/05/15 18:22:02
这是毕业设计中的一个聊天程序,里面有几个页面,运行的时候总是打不开。这两天要交了。拜托大家帮帮忙,帮修改一下。谢谢!
其中的页面分别为:
enter.asp
<!--#include file="util.asp"-->
<%
name=request("name")
session("name")=name
if application(name)="ln"then
session("errmsg")="此一姓名(别名)已经被占用,"
response.redirect"main.asp"
else
session("errmsg")=""
application(name)="ln"
session.timeout=1
response.redirect"frame.htm"
end if
%>

talk.asp
<!--#include file="util.asp"-->
<% if request("send")="send" then
dbpath=server.MapPath("chatroom.mdb")
set conn=server.CreateObject("ADODB.Connection")
conn.open"driver={Microsoft Access Driver(*.mdb)};dbq="&dbpath
name=session("name")
sql="insert into chatroom(姓名,内容)value("
sql=s

调试信息呢? 估计没有人有时间把这些东西调试一遍的
我估计问题出在数据库的写入上 你要把你的数据库文件开放对“所有人”的写入、修改、读取权限才可以进行insert的操作 先关闭简单共享吧(如果是xp的话) 然后对这个文件添加“所有人”的权限 具体的用“可更新的查询”为关键字baidu一下 有很多结果