<!--#include file="conn.asp"-->
<%
dim id,rs,sql
id=","&Trim(Request.QueryString("id"))
if Request.Cookies("Muser")="" then
   Response.Write("请先登录")
   Response.End()
end if
opendb

set rs= Server.CreateObject("adodb.recordset")
sql="select myNote from "&predb&"user where id="&Request.Cookies("Muser")
rs.open sql,conn,1,3

	if instr(rs(0)&",",id&",")>0 then
	   Response.Write("已经关注过该问题")
	else
	   rs(0)=rs(0)&id
	   rs.update
	   Response.Write("关注成功")
	end if
rs.close
set rs=nothing
closedb

%>
<input type="button" name="button2" id="button2" value="  确 定  " onClick="new parent.dialog().reset();"/>