免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2347 | 回复: 0
打印 上一主题 下一主题

[其他] 求助:asp代码无法运行 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-03-08 10:44 |只看该作者 |倒序浏览
本帖最后由 chinaaj 于 2013-03-08 10:52 编辑

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>ffff</title>
</head>
<body>
<%
rloupan=Request.Form("rloupan")
Dim conn,rs,dbpath

Set conn=Server.CreateObject("ADODB.Connection")

dbpath=Server.MapPath("datbas/datbas.mdb")

conn.Open "Driver={Microsoft Access Driver (*.mdb)};DBQ="&dbpath

        Set rs=Server.CreateObject("ADODB.RecordSet")
    sql="select * from rent where rloupan='"&rloupan&"' "
    rs.Open sql,conn,1,3  
%>

<table width="781" border="0" align="center">
      <tr>
        <td bgcolor="#FFFFFF"><img src="images/logo1.jpg" width="477" height="66" /></td>
      </tr>
</table>

  <table width="590" height="13%" border="2" align="center" cellpadding="0" cellspacing="0" bordercolor="#99FF66"

bgcolor="#FFFFFF"  style="border-collapse:separate">

                  <tr>
            <td width="140" bordercolor="#99ff66" bgcolor="#FFCC33"><div align="center">aaaa</div></td>
            <td width="130" bordercolor="#99ff66" bgcolor="#FFCC33"><div align="center">bbbb</div></td>
            <td width="149" bordercolor="#99ff66" bgcolor="#FFCC33"><div align="center">ccc</div></td>
            <td width="153" bordercolor="#99ff66" bgcolor="#FFCC33"><div align="center">ddd</div></td>
          </tr>
</table>
                             
                   <table>  
                             <%

    if (not rs.bof) and (not rs.eof) then
    rs.MoveFirst
    while not rs.eof


          Response.Write "<tr>"
         Response.Write   "<td >"
               Response.Write rs("rloupan")
          Response.Write  "</td>"
         Response.Write   "<td >"
               Response.Write rs("rlocation")
          Response.Write  "</td>"
            Response.Write "<td >"
               Response.Write rs("rprice")
           Response.Write "</td>"
            Response.Write "<td>"
               Response.Write rs("rtype")
           Response.Write "</td>"
         Response.Write "</tr>"
          
    rs.MoveNext
    wend
    end if
%>
</table>
</body>
</html>
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP