该怎么写呢?~
[bo][un]hmhz[/un] 在 2008-11-11 16:08 的发言:[/bo]
select 顾名思义,选择的意思
action 是变量名
action=request("action") '接收到的值赋值给变量action
select case action
case "article" …… '当action变量的值内容等于article时就执行省略位置的代码
...
<%
Dim wenzhangid
wenzhangid = Request.QueryString("id")
%>
<%
id = trim(request.querystring("id"))
set rsX=server.createobject("adodb.recordset")
ConnX.Execute "Update xinqingyizhan Set hits=hits+1 Where id= " & Request("id")
if id<>"" and isnumeric(request.form("id"))then
id = clng(id)
else
response.write("非法访问")
response.end
end if
sql="select hits,biaoti,ID,neirong,faburiqi,chuchu from xinqingyizhan where ID=" & wenzhangid
rsX.open sql,connX,1,1
%>
<%
dim wzid
wzid=rsX("id")
'response.write(rsX("ID"))
'response.end()
%>
<%
set rsXpl=server.createobject("adodb.recordset")
sql="select wenzhangid,plname,plriqi,plneirong,plid from xinqingyizhanpl where wenzhangid=" & ID
rsXpl.open sql,connXpl,1,1
if rsXpl.eof or rsxpl.bof then
response.write("暂无")
response.end()
end if
%>
那您说我该怎么吧您写的那些穿插在我的这段代码里呢?这对我来说太乱了 晕晕呼呼的,如从下手啊~~
呵呵 谢谢写一下呗。