Network examination Room (17) (Turn) tviewscore.asp

Source: Internet
Author: User
<%@ Language=vbscript%>
<HTML>
<HEAD>
<meta name= "generator" content= "Microsoft Visual Studio 6.0" >
</HEAD>
<BODY>
<p align=center><strong><font color=crimson face= "" size=4>
<%=request.querystring ("sub") Examination results of%> class
</FONT></STRONG></P>
<p align=center><font color=dodgerblue face= "" size=2>
Instructor: <%=request ("Teachname")%>
</FONT></P>
<p align=center>
<table border=0 cellpadding=1 cellspacing=1 width=75%>
<tr bgcolor=peachpuff>
<TD> name </TD>
<TD> Achievements </TD>
<TD> ranking </TD></TR>
<%
Set Conn=server. CreateObject ("Adodb.connection")
Conn. Connectionstring= "Dsn=testsys"
Conn. Open
' Declare the SQL query statement, query the test scores from the database, and sort the query structure in descending order
Strsql= "Select Score.score, Studentinfo.stname from score,studentinfo where Score.stid = Studentinfo.stid and Teachid= '" & Request.QueryString ("Teachid") & "' and Score.sub= '" & Request.QueryString ("Sub") & "' ORDER by Score.sc Ore DESC "
Set Mrs=conn. Execute (strSQL)
I=1
While not mrs.eof
' Show the results of the corresponding test subjects and the names of the students in tabular form
Response.Write "<TR>"
Response.Write "<TD>"
Response.Write Mrs ("Stname")
Response.Write "</TD>"
Response.Write "<TD>"
Response.Write Mrs ("score")

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.