<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<%
rec=cint(request("rec"))
titleID=cint(request("titleID"))
id=cint(request("ID"))
action=cint(request("action"))
set rs=server.CreateObject("adodb.recordset")
if action="2" then
rs.open "select * from title where titleID="&titleID,conn,1,3
rs("Recomm")=rec
Elseif action="3" then
rs.open "select * from imgbook where ID="&ID,conn,1,3
RS("index")=rec
Else
rs.open "select * from imgbook where ID="&ID,conn,1,3
rs("tuijian")=rec
End if
rs.update
rsclose
if action="2" then
response.Redirect("allrec.asp?page="&request("page"))
Else
response.Redirect("manage.asp?page="&request("page"))
End if
%>