注册 登录
编程论坛 ASP技术论坛

asp数据库读取数据失败,用的是<div>层,不是表格!!

CYCcaoyanchu 发布于 2012-07-11 14:36, 676 次点击
报出来的错误是这么一行英文:
An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.

<div style="width:690px; height:380px; border-style:solid">
        <%
                set rs = server.CreateObject("adodb.recordset")
                sql = "select contenttop,content from yhly"
                rs.open sql,conn
                if not rs.eof then            
        %>
             <div style="width:350px; height:30px; border-style:solid; float:left">留言标题:<% contenttop = rs("contenttop") %></div>
            <div style="width:305px; height:30px; border-style:solid; float:left">留言时间:<% datenow = rs("datenow")%></div><p></p>
            <div style="width:680px; height:150px; border-style:solid">留言内容:<p></p><% content = rs("content")%></div>
</div>
各位大侠帮帮我吧,我是个新手!!!
2 回复
#2
CYCcaoyanchu2012-07-11 14:55
我意识到不能用contenttop=rs("contenttop"),但我也已经将contenttop删除掉了,还是没有显示出来!!
#3
cnfarer2012-07-11 22:13
<% contenttop = rs("contenttop") %>   ==>   <% = rs("contenttop") %>
1