
asp分页高手请帮忙啊!!谢谢了!
让它两列显示只显示一行就行了写出代码就太谢谢了<!--#includefile="conn/conn.asp"--><%setrs_luck=server.CreateO...
让它两列显示
只显示一行就行了
写出代码就太谢谢了
<!--#include file="conn/conn.asp"-->
<% set rs_luck=server.CreateObject("adodb.recordset")
sql="select * from tab_luck "
rs_luck.open sql,conn,0,1
if rs_luck.eof and rs_luck.bof then
Response.Write "<div align=center>暂无数据</div> "
end if%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="37%" align="left">名称:</td>
<td width="63%"><%=rs_bizi("title")%></td>
</tr>
<tr>
<td align="left">积分:</td>
<td><%=rs_bizi("gamefen")%>(分)</td>
</tr>
<tr>
<td align="left">浏览:</td>
<td><%=rs_bizi("hit")%>(次)</td>
</tr>
<tr>
<td colspan="2" align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left">简介:<%=rs_bizi("content")%></td>
</tr>
</table>
让它两列显示
只显示一行就行了
写出代码就太谢谢了 展开
只显示一行就行了
写出代码就太谢谢了
<!--#include file="conn/conn.asp"-->
<% set rs_luck=server.CreateObject("adodb.recordset")
sql="select * from tab_luck "
rs_luck.open sql,conn,0,1
if rs_luck.eof and rs_luck.bof then
Response.Write "<div align=center>暂无数据</div> "
end if%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="37%" align="left">名称:</td>
<td width="63%"><%=rs_bizi("title")%></td>
</tr>
<tr>
<td align="left">积分:</td>
<td><%=rs_bizi("gamefen")%>(分)</td>
</tr>
<tr>
<td align="left">浏览:</td>
<td><%=rs_bizi("hit")%>(次)</td>
</tr>
<tr>
<td colspan="2" align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left">简介:<%=rs_bizi("content")%></td>
</tr>
</table>
让它两列显示
只显示一行就行了
写出代码就太谢谢了 展开
展开全部
多加几分吧!!为了你这几分不容易啊
<!--#include file="conn/conn.asp"-->
<% set rs_luck=server.CreateObject("adodb.recordset")
sql="select * from tab_luck "
rs_luck.open sql,conn,0,1
if rs_luck.eof and rs_luck.bof then
Response.Write "<div align=center>暂无数据</div> "
end if%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="37%" align="left">名称:</td>
<td width="63%"><%=rs_bizi("title")%></td>
</tr>
<tr>
<td align="left">积分:</td>
<td><%=rs_bizi("gamefen")%>(分)</td>
</tr>
<tr>
<td align="left">浏览:</td>
<td><%=rs_bizi("hit")%>(次)</td>
</tr>
<tr>
<td colspan="2" align="left">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<%
i=1
do while not rs.eof
%>
<td height="20" >简介:
<%=rs_bizi("content")%></td>
</tr>
<%
end if
%>
<%i=i+1
if i>=2 then exit do'自己定义几条记录退出
rs.movenext
loop
%>
</table>
<!--#include file="conn/conn.asp"-->
<% set rs_luck=server.CreateObject("adodb.recordset")
sql="select * from tab_luck "
rs_luck.open sql,conn,0,1
if rs_luck.eof and rs_luck.bof then
Response.Write "<div align=center>暂无数据</div> "
end if%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="37%" align="left">名称:</td>
<td width="63%"><%=rs_bizi("title")%></td>
</tr>
<tr>
<td align="left">积分:</td>
<td><%=rs_bizi("gamefen")%>(分)</td>
</tr>
<tr>
<td align="left">浏览:</td>
<td><%=rs_bizi("hit")%>(次)</td>
</tr>
<tr>
<td colspan="2" align="left">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<%
i=1
do while not rs.eof
%>
<td height="20" >简介:
<%=rs_bizi("content")%></td>
</tr>
<%
end if
%>
<%i=i+1
if i>=2 then exit do'自己定义几条记录退出
rs.movenext
loop
%>
</table>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询