|
阅读:445回复:4
[求助]我真的很需要帮助!
请尝试执行下列操作:
单击刷新按钮,或稍后重试。 打开 127.0.0.1 主页,然后查找与所需信息相关的链接。 HTTP 错误 500.100 - 内部服务器错误 - ASP 错误 Internet 信息服务 -------------------------------------------------------------------------------- 技术信息(用于支持人员) 错误类型: Microsoft OLE DB Provider for ODBC Drivers (0x80040E21) 多步 OLE DB 操作产生错误。如果可能,请检查每个 OLE DB 状态值。没有工作被完成。 /movie/manage/save_movie.asp, 第 116 行 浏览器类型: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) 网页: POST 302 ??? /movie/manage/save_movie.asp POST Data: title=asdasd&class=2&format=RM&commend=2&content=asdsadad&img=rtsp%3A%2F%2Fvodrealstream.bdchina.com%2F4000%2Ftyxy18-041230.rm&oneurl=rtsp%3A%2F%2Fvodrealstream.bdchina.com%2F4000%2Ftyxy18-041230.rm&t . . . 这个问题怎么解决??下面是save_movie.asp的源码 还有个奇怪的事情,我怀疑是不是里面有设置?我添加的字符数量有限制? 我的QQ是663126 我在这里救命了! <!--#include file="session.asp"--> <!--#include file="conn.asp"--> <!--#include file="../../inc/char.inc"--> <% action=request.form("action") %> <% if action="edit" then %> <% if request.form("title")="" then response.write "<p align='center'>错误:电影名称不能为空,请输入电影名称!</p>" response.write "<p align='center'><a href='javascript:history.back(1)'>返回重新输入</a>" response.end end if if request.form("class")="" then response.write "<p align='center'>错误:电影类别没有选择!</p>" response.write "<p align='center'><a href='javascript:history.back(1)'>返回重新输入</a>" response.end end if if request.form("format")="" then response.write "<p align='center'>错误:电影格式没有选择!</p>" response.write "<p align='center'><a href='javascript:history.back(1)'>返回重新输入</a>" response.end end if if request.form("oneurl")="" then response.write "<p align='center'>错误:电影上部地址不能为空,请输入上部地址!</p>" response.write "<p align='center'><a href='javascript:history.back(1)'>返回重新输入</a>" response.end end if %> <% dim title dim content dim classid dim img dim commend dim oneurl dim format dim twourl dim sql dim rs id=request.form("id") title=request.form("title") content=UBBCode(request.form("content")) ClassID=request.form("class") img=request.form("img") format=request.form("format") commend=request.form("commend") oneurl=request.form("oneurl") twourl=request.form("twourl") set rs=server.createobject("adodb.recordset") sql="select * from Movie where id="&id rs.open sql,conn,1,3 rs("title")=title rs("content")=content rs("ClassID")=ClassID rs("img")=img rs("format")=format rs("commend")=commend rs("oneurl")=oneurl rs("twourl")=twourl rs("time")=date() rs.update rs.close set rs=nothing %> <% else %> <% if request.form("title")="" then response.write "<p align='center'>错误:电影名称不能为空,请输入电影名称!</p>" response.write "<p align='center'><a href='javascript:history.back(1)'>返回重新输入</a>" response.end end if if request.form("class")="" then response.write "<p align='center'>错误:电影类别没有选择!</p>" response.write "<p align='center'><a href='javascript:history.back(1)'>返回重新输入</a>" response.end end if if request.form("format")="" then response.write "<p align='center'>错误:电影格式没有选择!</p>" response.write "<p align='center'><a href='javascript:history.back(1)'>返回重新输入</a>" response.end end if if request.form("oneurl")="" then response.write "<p align='center'>错误:电影上部地址不能为空,请输入上部地址!</p>" response.write "<p align='center'><a href='javascript:history.back(1)'>返回重新输入</a>" response.end end if title=request.form("title") content=UBBCode(request.form("content")) ClassID=request.form("class") img=request.form("img") format=request.form("format") commend=request.form("commend") oneurl=request.form("oneurl") twourl=request.form("twourl") set rs=server.createobject("adodb.recordset") sql="select * from Movie" rs.open sql,conn,1,3 rs.addnew rs("title")=title rs("content")=content rs("ClassID")=ClassID rs("img")=img rs("format")=format rs("commend")=commend rs("oneurl")=oneurl rs("twourl")=twourl rs("time")=date() rs.update rs.close set rs=nothing conn.close set conn=nothing %> <% end if %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>添加成功</title> <link rel="stylesheet" type="text/css" href="/css/style.css"> </head> <body> <table width="400" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td align="center" height="22" class="font">恭喜!添加电影成功!1秒后自动返回到电影添加页面!</td> </tr> </table> <meta http-equiv=refresh content="1; url=add_movie.asp"> </body> </html> |
|
|
1C#
发布于:2005-03-22 00:14
Re:[求助]我真的很需要帮助!
rtsp://vodrealstream.bdchina.com/4000/tyxy18-041230.rm
把这个连接里面的4000/去掉就可以正常添加了,是不是字符太长啊? |
|
|
2C#
发布于:2005-03-22 07:32
Re:[求助]我真的很需要帮助!
不应该是这个原因吧
--------------------
我就是我,松柏!
日志:http://songbai.blog.wait4c.com/ |
|
|
|
4C#
发布于:2005-03-23 12:41
Re:[求助]我真的很需要帮助!
数据库字段名写错了? 104到118行:
oneurl是这个: oneurl=rtsp%3A%2F%2Fvodrealstream.bdchina.com%2F4000%2Ftyxy18-041230.rm&t 你的twourl是什么呢? 不知道twourl是什么的情况下作如下猜测: 把4000去掉可以添加成功,那么错误应该出在 rs("oneurl")=oneurl 这一行 看看你的数据库里对 oneurl 这个字段的长度限制 呵呵,偶不怎么会ASP,瞎猜[em079] -------------------- [a=http://blog.csdn.net/GOJYO/]向北的路灯灭了.我不知道我是谁.NorTH.Path[/a] ~ ﭬﮔﮘﭾﮁﮉﮝ 幸福是一雙溫暖的紅唇 ♥ 等待迷路的蝴蝶 三叶草是不是四片叶子 幸福的距离遥不可及 |
|
|