| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 401 人关注过本帖
标题:[求助]查询问题高手帮我看看改改呀
只看楼主 加入收藏
fanr88
Rank: 1
等 级:新手上路
帖 子:9
专家分:0
注 册:2007-2-15
收藏
 问题点数:0 回复次数:1 
[求助]查询问题高手帮我看看改改呀

我是初学者 请高手帮我看看下面的查询和显示代码中有多少地方是错误的请用红字帮忙改改谢谢了
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="bbl.asp">
<label>
<center>
<input name="name" type="text" id="name" />
:
<input type="submit" name="Submit" value="提交">
</center>
</label>

</form>
<table width="225" border="1" align="center">
<tr>
<td width="50" align="center">id</td>
<td width="49" align="center">名称</td>
<td width="51" align="center">地址</td>
<td width="47" align="center">操作</td>
</tr>
<%
if action = "bbl" then
bbkid = request.form("bbkid")
bbk = request.form("bbk")
sql = "select * from bbk where id=" & bbkid
set rs = server.createobject("adodb.recordser")
rs.open sql,conn,1,1
if rs.eof or rs.bof then
end if
end if
%>
<script>alert('找不到该文件');history.back();</script>
<%
do while not rs.eof
%><
<tr>
<td><%=rs("id")%></td>
<td><%=rs("name")%></td>
<td><%=rs("movie")%></td>
<td align="center"><a href="kkl.asp">修改</a></td>
</tr>
<%
rs.movenext
loop
%>
</table>
<p>&nbsp;</p>
</body>
<%
rs.close
set rs = nothing
conn.close
set conn = nothing
%>
</html>

搜索更多相关主题的帖子: 改改 查询 
2007-02-15 23:38
yms123
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
收藏
得分:0 
[CODE]<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="bbl.asp">
<label>
<center>
<input name="name" type="text" id="name" /> :
<input type="submit" name="Submit" value="提交"> </center> </label>
</form>
<table width="225" border="1" align="center">
<tr>
<td width="50" align="center">id</td>
<td width="49" align="center">名称</td>
<td width="51" align="center">地址</td>
<td width="47" align="center">操作</td>
</tr>
<% if action = "bbl" then
bbkid = request.form("bbkid")
bbk = request.form("bbk")
sql = "select * from bbk where id=" & bbkid
set rs = server.createobject("adodb.recordser")
rs.open sql,conn,1,1
if rs.eof or rs.bof then
end if
end if
%>
<script>alert('找不到该文件');history.back();</script>
<%do while not rs.eof%>
<tr>
<td><%=rs("id")%></td>
<td><%=rs("name")%></td>
<td><%=rs("movie")%></td>
<td align="center"><a href="kkl.asp">修改</a></td>
</tr>
<%
rs.movenext
loop
%>
</table>
<p>&nbsp;</p>
</body>
<%
rs.close
set rs = nothing
conn.close
set conn = nothing
%>
</html>[/CODE]
不知楼主的程序有没有错误提示?
2007-02-16 16:00
快速回复:[求助]查询问题高手帮我看看改改呀
数据加载中...
 
   



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

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