home *** CD-ROM | disk | FTP | other *** search
- <%@ LANGUAGE="VBSCRIPT" %>
- <html>
-
- <head>
- <title>Sample</title>
- </head>
-
- <body>
- <%
- Set conn = Server.CreateObject("ADODB.Connection")
- Conn.Open "DSN=LocalTraining"
-
- SQL = "SELECT Course.* FROM Course"
-
- Set RSCourses = Conn.Execute(SQL)
-
- RSCourses.MoveFirst
-
- Do While Not RSCourses.EOF
- %>
- <p><%=RSCourses("Title")%></p>
- <%
- RSCourses.MoveNext
- Loop
-
- RSCourses.Close
- %></body>
- </html>
-