% if session("autorizado") = "" then response.Redirect("index.asp") end if guardar=request.QueryString("guardar") comentarista=request.Form("comentarista") opSemana=request.Form("opSemana") fotoGal=request.Form("fotoGal") if guardar = "si" then Set DB = Server.CreateObject("ADODB.Connection") Set rs1 = Server.CreateObject("ADODB.RecordSet") Set rs2 = Server.CreateObject("ADODB.RecordSet") DB.Open ("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" + Server.MapPath("../../db/_spmdb.mdb")) if comentarista <> "" then SQL ="Update fotos Set comentarista='" & comentarista & "'" set rs1 = DB.Execute(SQL) end if if opSemana <> "" then SQL ="Update fotos Set opSemana='" & opSemana & "'" set rs2 = DB.Execute(SQL) end if if fotoGal <> "" then SQL ="Update fotos Set fotoGal='" & fotoGal & "'" set rs2 = DB.Execute(SQL) end if DB.Close Set DB = Nothing end if %>