求助ASP数据库调用问题!重谢

来源:百度知道 编辑:UC知道 时间:2024/04/27 23:19:34
<TD><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#DBDBDB">
<tr>
<td>==<strong><a href="picture.asp" target="_blank">德育在线</a></strong>==</td>
<td> </td>
</tr>
</table>
<%set rs3=server.CreateObject("adodb.recordset")
rs3.open "select top 5 * from news where lm='75' order by ontop , id desc",conn,1,1
if rs3.eof and rs3.bof then
response.write "目前还没有内容!"
else
do while not rs3.eof %>
<table width="100%" border="0" align="center">
<tr>
<td>·<a href="news.asp?id=<%=rs3("id")%>" target="_blank"><%=left(trim(rs3("title")),18)%></a></td>
</tr>
<% rs3.movenext <

......
rs3.open "select * from desktop order by xxx desc"
......

<a href="news.asp?id=<%=rs3("xxx1")%>" target="_blank"><%=rs3("xxx2")%>

xxx1和xxx2是desktop表中的你想要的列。

这么简单的问题改一下参数就好了 可以的话 加qq 471348579

xxx1和xxx2是desktop表中的你想要的列。

wo kankan