国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > 建站經驗 > 正文

asp調用二級分類代 碼

2019-11-02 15:30:34
字體:
來源:轉載
供稿:網友

<%
 dim conn
 dim connstr
 dim db
 db="../data/1du.asp"
 Set conn = Server.CreateObject("ADODB.Connection")
 connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(db)
 conn.Open connstr
 
 sub closedatabase()
   conn.close
        set conn=Nothing
    End sub
%>
<title>錯誤提示</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%
dim founderr,errmsg
founderr=false
errmsg=""

if Request.form("MM_insert") then

if request.form("action")="newp" then
sql="select * from p_class_small"
set rs=server.createobject("adodb.recordset")
rs.open sql

神馬影院[www.aikan.tv/special/shenmayingyuan/]
,conn,1,3
rs.addnew
dim p_small_type,p_type
p_small_type=trim(replace(request.form("p_small_type"),"'",""))
p_type=trim(replace(request.form("p_type"),"'",""))
p_small_type_e=trim(replace(request.form("p_small_type_e"),"'",""))
if p_small_type="" then
  founderr=true
  errmsg=errmsg+"<br>"+"<li>你必須輸入欄目名稱名稱!"
else
  rs("p_small_type")=p_small_type
End if
if p_type="" then
  founderr=true
  errmsg=errmsg+"<br>"+"<li>你必須選擇一級分類!"
else
  rs("p_type")=p_type
End if
'由P_type得到p_type_e
   sql_p="select p_type_e from p_class where p_type='"&p_type&"'"
            set rs_p=server.createobject("adodb.recordset")
            rs_p.open sql_p,conn,1,1
   if Not(rs_p.BOF and rs_p.EOF) then
      p_type_e=rs_p("p_type_e")
   end if
   rs_p.close
   set rs_p=nothing 
rs("p_type_e")=p_type_e
rs("p_small_type_e")=p_small_type_e
if Not founderr then
rs.update
rs.close
set rs=Nothing
  closedatabase
response.redirect "admin_p_small.asp"
else
Call diserror()
response.End
End if
End if

if request.form("action")="editp" then
if request.Form("id")="" then
  founderr=true
  errmsg=errmsg+"<br>"+"<li>你必須指定操作的對象!"

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 扶风县| 门源| 合山市| 赫章县| 泉州市| 梁平县| 泰州市| 四平市| 阿坝| 汝州市| 斗六市| 景德镇市| 河津市| 东安县| 尼木县| 冀州市| 五原县| 平陆县| 抚松县| 屏东市| 九龙坡区| 克拉玛依市| 铁岭市| 柯坪县| 错那县| 周口市| 馆陶县| 瑞丽市| 铜山县| 惠州市| 金阳县| 延安市| 徐水县| 佛冈县| 惠来县| 江陵县| 满洲里市| 会同县| 白河县| 大庆市| 麻栗坡县|