当前位置:编程学习 > asp >>

我自己写的聊天室源代码(九)

*************************表情设置**************************
<%'optionbq.asp%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>表情设置</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<meta name="Microsoft Theme" content="none, default">
<meta name="Microsoft Border" content="none">
</head>
<body>
<%
dim sc_bqq(100)
sc_name = session("ss_name")
set conn = server.createobject("adodb.connection")
conn.open "chat","chat","chat001"
select case request.form("b1")
    case "添加表情"
        if trim(request.form("t1")) <> "" then
       what = replace(trim(request.form("t1")),"<","<")
       sql1 = "select * from user_bq_table where (user_name='所有人' and user_bq='" + what + "') or (user_name='" + sc_name +"' and user_bq='" + what + "')"
       set rs1 = conn.execute(sql1)
       if rs1.eof then
           sql = "insert user_bq_table values('" + sc_name +"','" + what + "')"
           set rs2 = conn.execute(sql)
           sql = "select user_bq from user_bq_table where user_name='所有人' or user_name='" + sc_name + "'"
           set rs3 = conn.execute(sql)
补充:asp教程,高级应用
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,