Files
KIN/inspection/coding_confirm_delete.asp
2025-09-29 17:55:08 +09:00

36 lines
732 B
Plaintext

<!-- #include virtual = "lib/config.asp" -->
<%
set dbin = server.CreateObject("ADODB.CONNECTION")
dbin.Open adoConn
Response.CharSet = "EUC-KR" 'ÇѱÛ
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
Dim id : id = request("id")
Dim i : i = 0
Dim j : j = 0
query = ""
query = query & " DELETE FROM project2.dbo.T_NEAKEUN_PAY WHERE attribute01 = '" & id & "' "
dbin.Execute query, i
if i = 1 then
query = ""
query = query & " DELETE FROM project2.dbo.neakeun_work WHERE id = " & id & " "
dbin.Execute query, j
if j = 1 then
Response.Write "1"
end if
end if
if i <> 1 or j <> 1 then
Response.Write "0"
end if
dbin.Close
%>