|
|
|
|
俵ÀÌ / 2001-09-24 / ¿ÀÀü 8:46:33 / 203.255.3.190
Á¶È¸¼ö : 136
|
[Áú¹®] üũ¹Ú½º¿¡ °üÇÑ Áú¹® ÀÔ´Ï´Ù. |
> ¾È³çÇϼ¼¿ä.
>
> ´Ù¸§À̾ƴ϶ó üũ¹Ú½º¸¦ ¼±ÅÃÇÏ°í ÀúÀåÀ» ´©¸£¸é
>
> ¼±ÅõȰªÀ» ÀúÀåÇÏ°í ÇÔ´Ï´Ù. ±×·±µ¥ ÀúÀåÀº ¾ÈµÇ¿©
>
> Áö±Ý À̹®Á¦·Î Àáµµ ¸øÀÚ°í ÀÖ½À´Ï´Ù. ¾Ë·ÁÁÖ¼¼¿ä
>
> ¾î¶²¹®Á¦À̸é¿ä. db´Â bitÇüÀ¸·Î ¼±¾ðµÇ¾îÀÖ½À´Ï´Ù.
>
> 0À̸é üũ¹Ú½º¿¡ üũ°¡ ¾ÈµÇ°í¿ä 1À̸é üũ¹Ú½º¿¡
>
> üũ°¡ µÇµµ·Ï Çϴ°ÍÀÔ´Ï´Ù. ÇÏÁö¸¸ ¾Æ¹«¸® Çصµ
>
> ¾ÈµÇ¿© µµ¿ÍÁÖ¼¼¿ä. ¼Ò½º´Â ´ÙÀ½°ú ¾Æ·¡¿Í °°½À´Ï´Ù.
>
> <%@ language=vbscript %>
>
> <%
> <!¾Õ¿¡¼ ÆäÀÌÁö¿¡¼ ³Ñ¾î¿Â °ªµé-->
> bunho = clng(request("bunho"))
>
> check = trim(request.form("check"))
>
> set abc=server.createobject("adodb.connection")
> abc.open "aaaa","sa",""
>
> if ( true = check) then
>
> check = 1
> sqlquery = "update probhead set "
> sqlquery = sqlquery & " probh_priv='" & check & "'"
> sqlquery = sqlquery & " where probh_bunho=" & bunho
> abc.Execute(sqlquery)
> response.redirect "problist.asp"
>
> else
>
> check = 0
> sqlquery = "update probhead set "
> sqlquery = sqlquery & " probh_priv='" & check & "'"
> sqlquery = sqlquery & " where probh_bunho=" & bunho
> abc.Execute(sqlquery)
> response.redirect "problist.asp"
>
> end if
>
> abc.close
> set abc = nothing
>
>
> %>
>
> ¿¡·¯´Â ¾ø´Âµ¥ ÀúÀåÀÌ ¾ÈµÇ¿© µµ¿ÍÁÖ¼¼¿ä......
-----------------------------------------------------------
±×¸®°í check¿¡ ³Ñ¾î ¿À´Â °ªÀÌ ¹ºÁö ¸ð¸£´Ñ±î Á¤È®ÇÑ ´äÀº ¸ø µå¸®±¸¿ä...
if ( true = check) then
ÀÌ ¹®Àå¿¡¼ Àǵµ ÇϽô ¹Ù°¡ ¹ºÁö Àß ¸ð¸£°Ú´Âµ¥¿ä...
check = true¶ó¸é ¸»ÀÌ µÉ°Í °°Àºµ¥¿ä....
±×·³.... ´Ù½Ã ÀÚ¼¼È÷ »ìÆì º¸¼¼¿ä....
|
|
|
|