| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 359 人关注过本帖
标题:[求助]查询问题高手来看看呀
只看楼主 加入收藏
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>

搜索更多相关主题的帖子: blank content include action center 
2007-02-15 23:35
fanr88
Rank: 1
等 级:新手上路
帖 子:9
专家分:0
注 册:2007-2-15
收藏
得分:0 

是这样的 !

<%@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:37
快速回复:[求助]查询问题高手来看看呀
数据加载中...
 
   



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

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