⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.asp

📁 ASP入门与提高实用教程 源文件(上传网站)
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%
dim rs,sql

Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from vote where options=0 order by updatetime desc"
rs.open sql,conn,1,1
if rs.eof then 
  response.write " 还没有任何投票!!"
  response.end
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<table width="400"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="84">所有投票:</td>
  </tr>
  <tr>
    <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <% 
	  while not rs.eof
	   %><tr>
        <td><a href="vote.asp?id=<%= rs("id") %>"><%= rs("title")%></a></td>
      </tr>
	  <% 
	  rs.movenext
	  wend
	  
	  rs.close
	  set rs=nothing
	  conn.close
	  set conn=nothing
	   %>
    </table></td>
  </tr>
</table>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -