音乐学院的研究生:哪个大哥OR大姐会ASP页与SQL数据库连接啊?能否留一下QQ?谢谢!
来源:百度文库 编辑:查人人中国名人网 时间:2024/04/30 18:57:07
最好先把一段程序写下来.然后附上QQ号.非常感激!
最好是经常在线的网友朋友!由于比较急,在线等!谢谢
我按照你的需求,自己建了一个数据库“111.mdb”,然后建立check表,里面加result1(字符型)字段。程序已测试,希望能对你有所帮助。
QQ:66026582,加我时请说明“百度我知道的朋友加”。
'''----------------money.asp-------
<!--#include file="conn.asp"-->
<%
dim action
action=request.QueryString("action")
if action="check" then
call check()
end if
%>
<form name="form1" method="post" action="money.asp?action=check">
<label>
<input type="text" name="textfield">
</label>
<label>
<input type="submit" name="Submit" value="查找">
</label>
</form>
<%
sub check()
dim buff,rs,sql
buff=request.Form("textfield")
sql="select result1 from check where result1 like '%"&buff&"%'"
set rs=conn.execute(sql)
do while not rs.eof
%>
<tr><%=rs(0)%></tr>
<%
rs.movenext
loop
end sub
%>
select * from where columan in (d,s,s1)
select * from where columan=(select ..........)
我的QQ: 416619723
我也来凑个热闹吧~`
我QQ 36428501