home *** CD-ROM | disk | FTP | other *** search
- <%@LANGUAGE = "VBSCRIPT"%>
- <%Option Explicit%>
- <%
- Dim conn, rs, strSQL
- Set conn = Server.CreateObject("ADODB.Connection")
- conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
- "Data Source=F:\Databases\photoalbum.mdb;" & _
- "Jet OLEDB:Database"
- Set rs = Server.CreateObject("ADODB.RecordSet")
- strSQL = "SELECT imageTitle, imageDesc, imageFilename FROM tblImages WHERE imageID=" & Request.QueryString("id")
- rs.open strSQL, conn
- %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
- <html>
- <head>
- <title>Photo Album</title>
- <link rel="stylesheet" type="text/css" href="global.css" />
- </head>
-
- <body>
- <div id="content">
- <h1><%=rs("imageTitle")%></h1>
- <p><%=rs("imageDesc")%></p>
- <p><img src="/uploads/<%=rs("imageFilename")%>" alt="<%=rs("imageTitle")%>" /></p>
- <p><a href="viewalbum.asp"><< Back to album</a></p>
- </div>
- <%rs.close
- set rs = nothing
- conn.close
- set conn = nothing%>
- </body>
- </html>
-
-