<% Set db = Server.CreateObject("ADODB.Connection") set rs = server.createObject("ADODB.Recordset") ' if request("action")="edit" then if len(request("album1"))=0 then myError="Must select all albums to display." if len(request("album2"))=0 then myError="Must select all albums to display." if len(request("album3"))=0 then myError="Must select all albums to display." if len(request("album4"))=0 then myError="Must select all albums to display." if len(request("album5"))=0 then myError="Must select all albums to display." if len(request("album6"))=0 then myError="Must select all albums to display." if len(myError)<1 then response.write "Updating Albums to Display... " db.execute("UPDATE frontpage SET album1='" & request("album1") & "', album2='" & request("album2") & "', album3='" & request("album3") & "', album4='" & request("album4") & "', album5='" & request("album5") & "', album6='" & request("album6") & "' WHERE id='1'") response.write "Done." end if else rs.open "select * from frontpage", db if NOT rs.eof then album1=rs("album1") album2=rs("album2") album3=rs("album3") album4=rs("album4") album5=rs("album5") album6=rs("album6") end if rs.close end if if len(myerror)>0 then response.write "Error: " & myError & "

" %>
Album 1
Album 2
Album 3
Album 4
Album 5
Album 6

<% set rs=nothing db.close set db=nothing %>