<!--#include file="../conn2.asp"-->
<!--#include file="set.asp"-->
<%
bid=int(request("bid"))
logo=request.form("logo")
bidname=request.form("bidname")
bidinfo=request.form("bidinfo")
px=request.form("px")
rzh=request.form("advshow")
username=request.form("username")
Set rs = Server.CreateObject("ADODB.Recordset")
sql = "SELECT * FROM board where bidname='"&bidname&"' and bid<>"&bid
rs.Open sql,conn,1,1
if not rs.eof then
response.write"<script language='javascript'>alert('论坛名称重复！')</script>"
response.write "<script language='javascript'>history.back(-1)</script>"
response.end
end if
Set rs = Server.CreateObject("ADODB.Recordset")
sql = "SELECT * FROM board where bid="&bid 
rs.Open sql,conn,1,3
rs("bidname")=bidname
rs("logo")=logo
rs("px")=px
rs("bidinfo")=bidinfo
rs("rzh")=rzh
if rzh=1 then
rs("username")=username
end if
rs.update


set rs=nothing
set conn=nothing
response.redirect "boardman.asp"
%>