简单问题:

xuantian868 2006-07-08 04:01:50
第一个页面
<TABLE WIDTH="760" align="center">
<tr align="center">似的看法可是的</font></td></tr>
<TR >
<TD height="18" bgcolor="#FF9999">  
<a href="intro.asp">首页</a>    
<a href="fuwu.asp?weizhiid=1">社区服务</a>     
<a href="huiyuan.asp">会员登陆</a>
<TD></TR></TABLE>
当我点击“社区服务”时候到
第二个页面获取url传的值:
<%
dim weizhiid,sqll,weizhi
weizhiid=request.QueryString("weizhiid")
sqll="select * from weizhi where id="&weizhiid&" "
set rs=server.CreateObject("adodb.recordset")
rs.open sqll,conn,1,1
weizhi = trim(rs("weizhi")) '18行在这里
rs.close
set rs=nothing
%>
<!--#include file="header.asp"--><br>
<table width="760" align="center">
<tr><td>你现在的位置是:<%= weizhi%></td></tr>
。。。。。。。。。。

错误提示:
Microsoft VBScript 编译器错误 错误 '800a03f6'

缺少 'End'

/iisHelp/common/500-100.asp,行242 错误 '80020009'

发生意外。

/newday/quancheng/fuwu.asp,行18
...全文
119 2 打赏 收藏 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
atubo1234 2006-07-08
  • 打赏
  • 举报
回复
楼上正解
clal 2006-07-08
  • 打赏
  • 举报
回复
加一个
If rs.eof and rs.bof then
Response.Write "没有找到记录"
Response.End
end if

还有你数据库id的类型是
数值:
sqll="select * from weizhi where id="&Cint(weizhiid)
文本:
sqll="select * from weizhi where id="&Cstr(weizhiid)

28,402

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧