看看我那儿错了?

wshzhi 2003-12-13 04:42:42
<!--#include file="conn.asp"-->
<%

sub wsz(lpstr)
dim i,str
set rs=server.createobject("adodb.recordset")
str="select Title,newsid from news where smallclassname="&""lpstr""
cursorlocation = 3
rs.open str,conn,1,1
'response.write "<p align=center>"

Do While not rs.EOF
response.write"<font color=#0000ff size=2>"
response.write "<a target=_blank href=/shownews.asp?id="&rs("Newsid")&" >"
'response.write"<a href=javascript;window.open(shownews.asp?id="&rs("newsid")>";

response.write rs("title")
response.write "</a>"
response.write"</font>"
response.write "<br>"
rs.movenext
Loop

'response.write "</p>"
rs.close
set rs=nothing
end sub
%>
说语句未结束错光标指向str="select Title,newsid from news where smallclassname="&""lpstr""
...全文
52 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
anddytang 2003-12-13
  • 打赏
  • 举报
回复
str="select Title,newsid from news where smallclassname=" &lpstr
liwb 2003-12-13
  • 打赏
  • 举报
回复
来晚了
jbj001 2003-12-13
  • 打赏
  • 举报
回复
="&""lpstr""
什么意思??
lpstr是什么???
pimple 2003-12-13
  • 打赏
  • 举报
回复
str="select Title,newsid from news where smallclassname='"&lpstr&"'"
oldmht 2003-12-13
  • 打赏
  • 举报
回复
str="select Title,newsid from news where smallclassname='"&lpstr&"'"

28,407

社区成员

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

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