% strPW = "bullet" If Not Request("pw") = "" then Session("pw") = Request.Form("pw") End If If Not Request("imageID") = "" then imageID = cint(Request("imageID")) Else imageID = cint(36) End If If Request("page") = "" Then intPage = 1 Else intPage = Request("page") End If If Request("Action") = "edit" and Session("pw") <> strPW then call GetPassword Response.End End If If Request("Action") = "edit" and Request("Title") <> "" then Set oConn = Server.CreateObject("ADODB.Connection") sConnString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & Server.MapPath("\database\recentwork.mdb") & ";" & _ "Persist Security Info=False" oConn.Open(sConnString) strTitle = Replace(Request("Title"),"'","''") strDescription = Replace(Request("ASPRichEdit"),"'","''") sql = "update paintings set title = '" & strTitle & "', description = '" & strDescription & "' where ImageID = " & imageID 'response.write sql oConn.Execute sql 'oConn.Commit Set oConn = nothing End If If Request("Action") = "edit" and Request("Delete") <> "" then Set oConn = Server.CreateObject("ADODB.Connection") sConnString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & Server.MapPath("\database\recentwork.mdb") & ";" & _ "Persist Security Info=False" oConn.Open(sConnString) strTitle = Replace(Request("Title"),"'","''") strDescription = Request("ASPRichEdit") sql = "delete from paintings where ImageID = " & imageID 'response.write sql oConn.Execute sql 'oConn.Commit Set oConn = nothing End If Set oConn = Server.CreateObject("ADODB.Connection") sConnString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & Server.MapPath("\database\recentwork.mdb") & ";" & _ "Persist Security Info=False" oConn.Open(sConnString) Set RS = Server.CreateObject("ADODB.Recordset") RS.CursorLocation = 3 RS.CursorType = 3 RS.ActiveConnection = oConn sql = "select * from paintings where imageid =" & imageID RS.Open sql If Not RS.EOF then pTitle = RS("Title") pImage = RS("PreviewFileName") If IsNull(RS("Description")) then pDescription = "" Else pDescription = RS("Description") End If pImageL = RS("LargeFileName") Else pTitle = "Image Removed from Gallery" pImage = "spacer.gif" End If Set RS = Nothing Set oConn = Nothing %>
| conleyart.com : the art of Stephen Conley |
|
: Home : Bio : Guestbook : Contact ![]() Early Work ![]() Portraits ![]() Recent Work |
Recent Work (2000+) |
|||||||||
|
||||||||||
|
|
"<%=pTitle%>" <%=pDescription%>
|
|||||||||
| ....................... | ||||||||||
all images on this site © Stephen Conley
<%If Request("Action") = "edit" then%>|
This page is for administrative purposes only. If you got here accidentally, take this link to go back. |