Modicar / Eliminar Envío
<%
' ####################################################################
' #
' # We've Displayed It, So now lets change it!
' #
' ####################################################################
case "doit"
Select Case Request.QueryString("table")
case "users" ' Updates Users
if Request.Form("DelM") = "on" then ' Delete User
StrSql = "DELETE * FROM members where member_id = " & Request.Form("id")
my_conn.Execute StrSql
strSQl ="Update totals set totals.U_Count=totals.U_Count - 1"
my_conn.Execute StrSql
Response.Write "
" & Request.Form("name") & " Se ha eliminado"
Else ' Update Details
StrSql = "UPDATE members SET m_name = '" & ChkString(Request.Form("name")) & "', "
StrSql = StrSql & "m_password = '" & ChkString(Request.Form("password")) & "', "
StrSql = StrSql & "m_email = '" & ChkString(Request.Form("email")) & "', "
StrSql = StrSql & "m_country = '" & ChkString(Request.Form("country")) & "', "
StrSql = StrSql & "m_homepage = '" & ChkString(Request.Form("homepage")) & "', "
StrSql = StrSql & "m_ICQ = '" & ChkString(Request.Form("ICQ")) & "', "
StrSql = StrSql & "m_sig = '" & ChkString(Request.Form("sig")) & "', "
StrSql = StrSql & "m_default_view = " & ChkString(Request.Form("view")) & ", "
StrSql = StrSql & "m_level = " & ChkString(Request.Form("level"))
StrSql = StrSql & " Where member_id = " & Request.Form("ID")
'Response.Write StrSql & "
"
my_conn.Execute StrSql
Response.Write "" & Request.Form("name") & " - Actualización Terminada"
End If
case "category"
strSql = "UPDATE category SET cat_name = '" & Request.Form("modcat") & "' where cat_id = " & Request.Form("cat")
Response.Write StrSQl
my_conn.Execute StrSql
End Select
End Select
on error resume next
rs.Close
my_conn.Close
set rs = nothing
set my_conn = nothing
%>