帮忙看一下

aarongame 2008-04-01 04:54:57
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/mynews.asp" -->
<%
Dim Recordset1
Dim Recordset1_numRows

Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_mynews_STRING
Recordset1.Source = "SELECT * FROM news ORDER BY news_adddate DESC"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()

Recordset1_numRows = 0
%><!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>无标题文档</title>
</head>

<body>
<%if Recordset1.Fields.Item("news_subject").Value="活动专题" then
sql="select * from news where bigclass='"&Recordset1.Fields.Item("news_subject").Value&"'"
objrs.open sql,objconn1,1
objrs.close
end if%>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>

这样写为什么不能显示结果?数据库中有内容
...全文
61 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
liuyann 2008-04-07
  • 打赏
  • 举报
回复


==== ====
aarongame 2008-04-01
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 siyee 的回复:]
好像你没有输出什么内容吧?
你的结果显示在哪里呢
[/Quote]

你真是高手啊,我就是不会写显示结果的代码,您给补上吧
siyee 2008-04-01
  • 打赏
  • 举报
回复
好像你没有输出什么内容吧?
你的结果显示在哪里呢
business_hour 2008-04-01
  • 打赏
  • 举报
回复
俺菜,没找到症结。??

28,391

社区成员

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

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