최초커밋
This commit is contained in:
29
inspection/manJson.asp
Normal file
29
inspection/manJson.asp
Normal file
@@ -0,0 +1,29 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
|
||||
|
||||
manIDs = request("mans")
|
||||
Dim resultJson
|
||||
resultJson = "["
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
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
|
||||
%>
|
||||
Reference in New Issue
Block a user