?? search_answer.asp
字號:
<%if session("password")<>"" then%>
<HTML>
<HEAD>
<title>http://www.25175.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FF3300}
-->
</style>
</HEAD>
<BODY>
<div align="center">
</div>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="25"><a href="index.asp">首頁</a> <a href="add.asp">添加試題</a> <a href="delete_all.asp">刪除試題</a> <a href="SEARCH.ASP">列出試題答案</a> <a href="change_password.asp">修改密碼</a> <a href="login.asp">登入</a> <a href="20050130_logout.asp">退出</a> <a href="http://www.25175.com">powered by 25175</a></td>
</tr>
</table>
<!--#include file="conn.asp" -->
<% id=request("id") %>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<%if request("id")<>"" then
sql="select 1 *from test where id like'" &id& "'"
else
sql="select top 1 *from test"
end if
sql="select *from test where id like'"&id&"' "
rs.Open sql,conn,1,1
'RS參數設定為執行SQL的查詢語法,數據庫文件里的test表中的數據,無論任何條件,全部設計為查詢的對象,并由RS作為管理的參數。
if rs.EOF and rs.BOF then
Response.Write "沒有這個信息..."
else
%>
</td>
</tr>
</table>
<%
do while not rs.EOF or rs.BOF
%>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="160" height="25"> 題目:
<% = rs("question") %></td>
<!-- 用戶名 -->
<td width="160">選擇A:<%=rs("A")%></td>
<td width="160">選擇B:<%=rs("b")%></td>
<td width="160">選擇C:<%=rs("c")%></td>
<td width="160">選擇D:<%=rs("d")%></td>
<td width="160">正確答案:<%=rs("ans")%></td>
<!--備份 -->
</tr>
</table>
<%
rs.movenext
loop
end if
%>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="25" bgcolor="#F7F7F7">共
<%=rs.RecordCount %>條記錄
<%=rs.source%>
</td>
</tr>
</table>
<%
set rs=nothing
set conn=nothing
%>
</BODY>
</HTML>
<%else
Response.Redirect "20050130_loginagine.asp"
end if%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -