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

29 lines
846 B
Plaintext

<!-- #include virtual = "lib/config.asp" -->
<%
manIDs = request("mans")
Dim resultJson
resultJson = "["
Response.CharSet = "EUC-KR" 'ÇѱÛ
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-control", "no-staff"
Response.Expires = -1
query = ""
query = query & " SELECT new_id, m_name, LEFT(m_jumin, 6) AS m_jumin "
query = query & " FROM MAN "
query = query & " WHERE new_id IN ('" & replace(manIDs, ",", "','") & "') "
Rs.Open query, adoConn, 1
do while not Rs.eof
resultJson = resultJson & "{""id"":""" & Rs("new_id") & """,""name"":""" & Rs("m_name") & """,""birth"":""" & Rs("m_jumin") & """}"
Rs.movenext
if not Rs.eof then
resultJson = resultJson & ","
end if
loop
Rs.close
resultJson = resultJson & "]"
Response.Write resultJson
%>