在线等,急急急急急急

来源:百度知道 编辑:UC知道 时间:2024/05/11 19:05:04
<%
set rs=server.createobject("adodb.recordset")
sql="select top 3 * from HN_news where kinds=true and picUrl<>'' and tj=1 and ynimg=7 order by id desc"
rs.open sql,conn,1,1
%>
谁帮我看看,这是图片新闻调用的代码.为什么在本地能用,能到网上不行呢
联系529944402
解决者,高分奉上。
<%
set rs=server.createobject("adodb.recordset")
sql="select top 3 * from HN_news where kinds=true and picUrl<>'' and tj=1 and ynimg=6 order by id desc"
rs.open sql,conn,1,1
%>
这是其他的能用的页面的代码,帮我分析一下

ynimg=7你数据库中有符合这个条件的记录吗?
你应该是没找到记录才不能会的?
这个纪录有
会的联系,追加

估计这个有错误,sql="select top 3 * from HN_news where kinds=true and picUrl<>'' and tj=1 and ynimg=6 order by id desc"

你用单一的查询语句到库裏面查询一下看看能不能查得到!

ynimg=7你数据库中有符合这个条件的记录吗?
你应该是没找到记录才不能会的