📄 mysq.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%response.buffer=true%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<!--#include file="conn.inc"-->
<wml>
<head>
<meta http-equiv="Cache-Control" content="no-Cache"/>
<meta http-equiv="Cache-Control" content="max-age=0"/>
<meta http-equiv="Expires" content="Mon, 1 Jan 1990 00:00:00 GMT"/>
</head>
<%
if myid="0" then response.redirect "66hc_grdl.asp?cw=6"
'---接收数据----
lid=request.QueryString("lid")
vid=request.QueryString("vid")
if vid="" then vid="0"
page=request.QueryString("page")
if page="" then page="0"
'---结束接收----
%>
<card title="添加书签">
<p>
<%
set rs=Server.CreateObject("ADODB.Recordset")
rspl="select * from User_box where cstr(UserID)="&myid&" and cstr(list_bookid)="&lid
rs.open rspl,conn,1,2
if rs.eof then
'---开始增加----
rs.addnew
rs("UserID")=myid
rs("list_bookid")=lid
if vid<>"" then rs("list_viewid")=vid
if page<>"" then rs("list_pageid")=page
rs.update
sql="update list_book set list_cang=list_cang+1 Where CStr(id)="&lid
conn.Execute(sql)
Else
rs("list_viewid")=vid
rs("list_pageid")=page
rs.update
end if
rs.close
set rs=nothing
%>
添加书签成功,<br/>
<%if vid<>"0" then%>
<a href="view_book.asp?i=<%=page%>&id=<%=vid%>">继续阅读>></a><br/>
<%end if%>
<a href="view.asp?sb=<%=sb%>&id=<%=lid%>">回到章节>></a><br/>
<a href="class.asp?sb=<%=sb%>&id=<%=lid%>">回到封面>></a><br/>
<a href="mysb.asp?sb=<%=sb%>&id=<%=lid%>">我的书包>></a><br/>
************<br/>
<a href="index.asp?sb=<%=sb%>&id=<%=lid%>">泡书首页</a>
</p>
</card>
</wml>
<%endConnection()%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -