asp源码怎么用 asp 查询数据代码
asp 查询数据代码
<%if request("id")="" then response Write "<script>alert( 对不起!你输入了非法字符 );location ;</Script>" response end end if id=request("id") set rs=server CreateObject("adodb recordset") rs open "select web_open from tgy where username= "&id&" " conn if rs eof then response Write "<script>alert( 对不起!该网站不存在! );location ;</Script>" response end end if if rs("web_open")= then response Write "<script>alert( 对不起!该网站处于关闭状态! );location ;</Script>" response end end if rs close %> <%set user_rs=server CreateObject("adodb recordset") user_rs open "select * from tgy where username= "&id&" " conn member_get=user_rs("member_get") webname=user_rs("web") pm=user_rs("pm") qq=user_rs("qq") email=user_rs("email") name =user_rs("name") province=user_rs("province") city=user_rs("city") visit=user_rs("visit") vip=user_rs("vip") adddate=user_rs("adddate") vip_url=user_rs("weburl") if request Cookies("id")="" then user_rs("visit")=user_rs("visit")+ if user_rs("jifen ")="" or isnull(user_rs("jifen ")) then user_rs("jifen ")= else user_rs("jifen ")=user_rs("jifen ")+ end if visit=user_rs("visit") end if user_rs update response Cookies("ip")=request ServerVariables("REMOTE_ADDR") response Cookies("id")=id if user_rs("vip")= and user_rs("vipdate")>=date() then if user_rs("weburl")="" or isnull(user_rs("weburl")) then response redirect "/cd /?id="&id&"" else response redirect "/"&user_rs("weburl")&"/?id="&id&"" end if end if response Cookies("tgy_url")="/cd/index asp?id="&id&"" user_rs close set user_rs=nothing

lishixinzhi/Article/program/net/201311/14322
相关文章
- asp.net web连接数据库 asp.net中水印的实现代码
- asp源码怎么用 asp 全面安全数据连接代码
- asp查询数据库数据 asp.net下经典数据库记录分页代码
- asp源码怎么用 asp.net编程程序优化要注意的问题
- asp开源建站系统 asp 在线调查系统
- 什么asp asp.net如何得到GRIDVIEW中某行某列值的方法
- asp数据源控件有哪些 ASP.NET2.0中使用数据源控件之基础知识
- asp数据源控件有哪些 ASP.NET入门教程 7.3.1 数据源控件的基本属性[2]
- asp数据源控件有哪些 ASP.NET 2.0 中的数据源控件
- asp数据源控件有哪些 ASP.NET入门教程 7.5 带有参数的数据源控件[3]
爱学记

微信收款码
支付宝收款码