Create a table, delete a table, and delete a table's records (a window's judgment and jump) + link to a new page with a determined size

Source: Internet
Author: User
<%
Timeout value for ' session.timeout=10 ' Session object
' On Error Resume Next
Set conn = Server.CreateObject ("ADODB. Connection ")
Conn. Open "Driver={microsoft Access Driver (*.mdb)}; Dbq= "& Server.MapPath (" Examination.mdb ")
Set rs = Server.CreateObject ("ADODB.") Recordset ")
%>
<%
Papername=request ("Papername")
Sql= "CREATE TABLE" &papername& "(Topic type Long, topic serial number long, topic char (50), subject fractional long, select 1 char (50), select item 2 char (50), select item 3 Char (50), select item 4 char (50), correct answer MEMO);
Conn.execute sql%>
<%
Subject=request.querystring ("id")
Delsql= "Delete from quiz paper information where quiz paper name = ' &Subject& '"
Conn.execute Delsql
t_delsql= "DROP table" &subject
Conn.execute T_delsql
%>
<script language= "VBScript" >
MsgBox "Delete Quiz paper success!" "
Location.href= "Javascript:history.back ()"
</script>
<a href= "#" onclick= "window.open (' madepaper.htm ', ' create ', ' scrollbars=no,resizable=no,width=353,height=191 ')" > Create </a>

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.