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

一个童鞋的短消息求助

zaixuexi 发布于 2011-12-02 14:54, 888 次点击
首页
function PhotoDex()
  dim rs,sql,i
  set rs = server.createobject("adodb.recordset")
  sql="select * from zhi_rui_e_po where ViewFlag=1 order by id desc"
  rs.open sql,conn,1,1
  response.write"<div class=""newpic_list"">"
  if rs.bof and rs.eof then
    response.write "<tr><td align='center'>暂无相关信息</td></tr>"
  else
    response.write"<ul>"
    for i=1 to 12' rs.recordcount
      if rs.eof then exit for
          response.write"<li><div class=""newpic_pic"">"
          response.write"<a  href='Photo_Show.asp?InfoId="&rs("ID")&"&ClassId="&rs("ClassId")&"&Topid="&rs("TopID")&"'><img src='"&rs("BigPic")&"' border=""0"" width=100 height=85></a></div>"
          response.write"<div class=""newpic_title"">"&left(rs("PhotoName"),10)&"</div></li>"
    if i mod 6 = 0 then
    response.write"</ul>"
        end if
      rs.movenext
    next
  end if
  response.write "</div>"
  rs.close
  set rs=nothing
end function
帮我看看。<%=PhotoDex()%>这是首页最新图片的调用,我想调分栏的内容。修改哪里呢??谢谢!!

一个不认识的孩纸发我的短消息求助,我不是做asp这块的,不太懂,也没时间搞,所以转了这了。大家有时间就帮看看
6 回复
#2
yms1232011-12-04 10:08
已经回复了
#3
zhbawa2011-12-05 14:36
没有看到回复呀!??
只有本站会员才能查看附件,请 登录


[ 本帖最后由 zhbawa 于 2011-12-5 14:54 编辑 ]
#4
zhbawa2011-12-05 14:57
回复 2楼 yms123


帮我修改一下,谢谢!!
#5
zhbawa2011-12-06 12:47
没人会呀!!!!!!
#6
zhbawa2011-12-06 13:45
我自己弄好了!!!!!这里真是没用的地方!!!!
#7
yms1232011-12-06 14:26
sql="select * from zhi_rui_e_po where ViewFlag=1 order by id desc"
调用分栏的内容直接修改SQl语句即可
1