program | online database connection
I used Global.asa to run this application. Details of the run Global.asa file are described in the previous article-Using global.asa correctly.
< SCRIPT language=vbscript Runat=server >
Sub Application_OnStart
DBPath = "dbq=" & Server.MapPath ("Onlinetest.mdb")
dbconnectionstring = "Driver={microsoft Access DRIVER (*.mdb)};" & DBPath
Set application ("Conn") = Server.CreateObject ("ADODB. Connection ")
Application ("Conn"). Open dbconnectionstring
End Sub
Sub Application_OnEnd
Application ("Conn"). Close
Set application ("Conn") = Nothing
End Sub
Sub Session_OnStart
End Sub
Sub Session_OnEnd
End Sub
</script >
Conclusion
The application is very simple, but it is useful for sites that want to have online exams. Companies that have special uses in special areas can also use it, and the references and their details can be recovered from the table. Readers may also want to explore further to enhance the functionality of this application:
Show only one topic at a time.
You can set the problem pattern from difficult to easy.