| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 392 人关注过本帖
标题:不知道哪错了,专家前辈们帮帮忙,读取不了数据库的内容
只看楼主 加入收藏
九零摩羯
Rank: 1
来 自:河北
等 级:新手上路
帖 子:6
专家分:0
注 册:2012-11-7
结帖率:0
收藏
已结贴  问题点数:2 回复次数:1 
不知道哪错了,专家前辈们帮帮忙,读取不了数据库的内容
<body>
<form name="form1" method="post" action="index.asp" target="_blank">
<p>&nbsp;</p>
<p align="center"><label for="用户名">
  <label></label>
用户名:
<input name="example1" type="text" size="20" maxlength="15" />
</p>
<p align="center"><label></label>
密码:     
  <input name="example2" type="password" size="20" maxlength="15"/>&nbsp;</p>
<p align="center">
  <input name="myLogin" type="submit" value="登陆" />
  <input name="myCancle" type="reset"  value="取消"/>
</p>
</form>
    <%
  Dim conn,strConn
  set conn=Server.CreateObject("ADODB.Connection")
  strConn="provider=microsoft.Jet.OLEDT.4.0;Date Source ="& Server.MapPath("yingyong0220.mdb")
  conn.Open strConn
  
  dim rs,strsql
  trSql="Selet * Form user20 Where name Like'%"& Request.Form("example1")&"%'"
  Set rs=conn.execute(strsql)
%>
</body>
搜索更多相关主题的帖子: password 数据库 blank 用户名 action 
2012-11-07 17:01
yms123
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
收藏
得分:2 
dim rs,strsql
  strSql="Selet * Form [user20] Where [name] Like'%"& Request.Form("example1")&"%'"
2012-11-09 14:38
快速回复:不知道哪错了,专家前辈们帮帮忙,读取不了数据库的内容
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.013175 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved