谁知道这是什么毛病啊?????

wenyang2004 2004-09-21 05:27:07
在下面的文件里, <%=rsiq("lx")%> 可以读出来,但<%=rsiq("man")%>和<%=rsiq("tel")%>读不出来.

但把<%=rsiq("man")%>换到<%=rsiq("lx")%>这就可以读出来.

这是怎么回事啊???

<%
id=request("id")
sqliq="select * from fbxx where id='"&id&"'"
set rsiq=conn.execute(sqliq)
%>
<table width="100%" height="185" border="1" cellPadding="0" cellSpacing="0" borderColorLight="#000000" borderColorDark="#ffffff">
<tr>
<td height="20" width="22%" align="right"><font face="宋体"> <b>类型:</b></font></td>
<td height="20" width="78%">  <font color="#ff0000"><%=rsiq("lx")%></font></td>
</tr>
<tr>
<td height="20" width="22%" align="right"><font face="宋体"> <b>商品类别:</b>
</font></td>
<td height="20" width="78%">  <%=rsiq("qy")%>元</td>
</tr>
<tr>
<td height="20" width="22%"align="right"><font face="宋体"> <b>信息标题 :</b></font>
</td>
<td height="20" width="78%">  <%=rsiq("address")%> </td>
</tr>
<tr>
<td height="21" width="22%"align="right"><font face="宋体"> <b>联系人:</b></font></td>
<td height="21" width="78%">  <%=rsiq("man")%></td>
</tr>
<tr>
<td height="21" width="22%"align="right"><font face="宋体"> <b>电话 :</b>
</font></td>
<td height="21" width="78%">  <%=rsiq("tel")%></td>
</tr>
</table>
...全文
104 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
fenlin 2004-09-23
  • 打赏
  • 举报
回复
尝试一下这样:
<%
id=request("id")
sqliq="select * from fbxx where id='"&id&"'"
set rsiq=conn.execute(sqliq)
'这里加一句
lgj=rsiq("man")
%>
调用时<%=lgj%>
wenyang2004 2004-09-22
  • 打赏
  • 举报
回复
但字段里有值啊

而且但把<%=rsiq("man")%>换到<%=rsiq("lx")%>这就可以读出来.
wenyang2004 2004-09-22
  • 打赏
  • 举报
回复
<%=rsiq("man")%>字段里面有值啊

但就是显示不出来!~
dicklee1214 2004-09-21
  • 打赏
  • 举报
回复
也有可能是查出来的根本就为空“”所以你误认为没有读到
pumaboyd 2004-09-21
  • 打赏
  • 举报
回复
应该是没这个字段的原因
潜水的鱼 2004-09-21
  • 打赏
  • 举报
回复
检查下, 数据表有没有这个字段,

最好加个判断

if rsiq.eof and rsiq.bof then Response.Write "not database"

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧