初学者看书编了个留言本的首页显示页面,出错啦
初学者看书编了个留言本的首页显示页面,预览时游览器不报错,但是数据库里的字段没有显示希望大手指点下?(随便问句,现在学ASP语言过时了吗?有的人说学PHP的好~)
<!--#include file="../conn.asp"-->
<style type="text/css">
<!--
.style1 {font-size: 12px}
-->
</style>
<b><a href="say.asp">发表帖子</a></b><br><br>
<div align="center">
<center>
<div class="righttitle">
<div align="left">留言咨询<br />
</div>
<table width="100%" height="12" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#e3e3e3" style="border-collapse: collapse; ">
<tr align="center" valign="middle">
<td width="15%">标题</td>
<td width="41%"><span class="style1">主题</span></td>
<td width="10%"><span class="style1">发表时间</span></td>
<td width="10%"><span class="style1">姓名</span></td>
</tr>
</table>
<%i=1
set showwx_OrderConsultation=conn.execute("select*from wx_OrderConsultation order by id desc")
do while not showwx_OrderConsultation.eof
%>
<div align="center">
<center>
<table width="100%" height="26" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#e3e3e3" style="border-collapse: collapse; ">
<tr align="center" valign="middle">
<td width="15%"><%=showwx_OrderConsultation("Course")%></td>
<td width="41%" align="left"><%=showwx_OrderConsultation("Content")%></td>
<td width="10%"><%=showwx_OrderConsultation("AddTime")%></td>
<td width="10%"><%=showwx_OrderConsultation("TrueName")%></td>
</tr>
</table>
</center>
</div>
<%i=i+1
if i>10 then exit do
showwx_OrderConsultation.movenext
Loop
showwx_OrderConsultation.Close
set showwx_OrderConsultation=nothing
%>
<br />
</div>
</center>
</div>