|
|
|
|
¹®Èñö / 2000-06-19 / ¿ÀÈÄ 2:39:26 / 211.51.20.144
Á¶È¸¼ö : 103
|
[Áú¹®] ¼öÁ¤À» Çϴϱî,Àüü µ¥ÀÌÅÍ°¡ Çϳª·Î º¯°æµÆ¾î¿ä |
> > ¾È³çÇϽʴϱî ?
> > ¿¹Àü¿¡ 俵´ÔÀ» ±ÍÂú°Ô Çصå·È´ø ¼Ò½º¿¡ ¹®Á¦°¡ ¹ß»ýÇؼ ÀÌ·¸°Ô ±ä±ÞÇÏ°Ô ±ÛÀ» ³²±é´Ï´Ù.
> > ¿ì¼±Àº ±âÁ¸¿¡ µ¥ÀÌÅÍ°¡ ÀÖÀ» °æ¿ì ¸»ÀÔ´Ï´Ù.¼öÁ¤À¸·Î ÇÑ°¡Áö µ¥ÀÌÅ͸¦ ÇϸéÀº ¸ðµç µ¥ÀÌÅÍ°¡ ¼öÁ¤Çß´ø µ¥ÀÌÅÍ·Î ¹Ù²Ù¾î ¹ö·È°Åµç¿ä...
> > ÀÌ ¹®Á¦ Á» ÇØ°á ÇØÁÖ¼¼¿ä
> > ¼Ò½º´Â ´ÙÀ½°ú °°½À´Ï´Ù.
> > <%
> >
> > 'request°³Ã¼¸¦ ÅëÇØ ³Ñ¾î¿Â °ªµéÀ» º¯¼ö¿¡ ÀúÀå
> > name = request("name")
> > email = request("email")
> > url = request("url")
> > title = request("title")
> > company = request("company")
> > country = request("country")
> > vdate = request("vdate")
> > mcode = request("mcode")
> > pregident = request("pregident")
> > depart = request("depart")
> > addre = request("addre")
> > tel = request("tel")
> > fax = request("fax")
> > pwd = request("pwd")
> > content = request("content")
> >
> > Set db = Server.CreateObject("ADODB.Connection")
> > db.Open("offer")
> >
> > 'ÇöÀçÀÇ ±ÛÀÇ ºñ¹Ð¹øÈ£¸¦ °¡Á®¿À´Â Äõ¸®¹®À» ÀÛ¼º
> > SQL = "Select pwd from myboard where board_idx = " & request("idx")
> >
> > set result = db.execute(SQL)
> > pwd=result("pwd")
> > Set db = Nothing
> > 'ÀԷ¹ÞÀº ºñ¹Ð¹øÈ£¿Í ½ÇÁ¦ ºñ¹Ð¹øÈ£¸¦ ºñ±³ÇÏ¿© ÀÏÄ¡ÇÑ´Ù¸é
> > if request("pwd") = pwd then
> > Set db = Server.CreateObject("ADODB.Connection")
> > db.Open("offer")
> > SQL = "UPDATE myboard set name = '" & name &"'"
> > SQL = SQL & ",email = '" & email & "'"
> > SQL = SQL & ",url= '" & url & "'"
> > SQL = SQL & ",title='" & title & "'"
> > SQL = SQL & ",company='" & company & "'"
> > SQL = SQL & ",country='" & country & "'"
> > SQL = SQL & ",vdate='" & vdate & "'"
> > SQL = SQL & ",mcode='" & mcode & "'"
> > SQL = SQL & ",pregident='" & pregident & "'"
> > SQL = SQL & ",depart='" & depart & "'"
> > SQL = SQL & ",addre='" & addre & "'"
> > SQL = SQL & ",tel='" & tel & "'"
> > SQL = SQL & ",fax='" & fax & "'"
> > SQL = SQL & ",content='" & content & "'"
> > SQL = SQL & " where board_idx = "& request("idx")
> > db.execute SQL
> > Set db = Nothing
> > Response.Redirect "list.asp"
> > 'µ¥ÀÌÅͺ£À̽º¿¡ ÇöÀçÀÇ ·¹Äڵ带 updateÇÏ°í ¸®½ºÆ®·Î µ¹¾Æ°£´Ù.
> >
> > else
> >
> > %>
> >
> >
> > <%
> > end if
> > %>
> -----------------------------------------------------------
>
> ÀÌ ¹®Á¦´Â request("idx")ÀÇ °ªÀÌ Á¦´ë·Î ³Ñ¾î¿ÀÁö ¾Ê±â ¶§¹®ÀÔ´Ï´Ù.
>
> UPDATEÀÇ ¹®¿¡¼´Â WHERE ÀýÀÌ Á¦´ë·Î ÀÏÄ¡ÇÏÁö ¾ÊÀ¸¸é
>
> ÀÌ¿Í°°ÀÌ ¸ðµç µ¥ÀÌŸ°¡ ¼öÁ¤ÀÌ µÉ ¼ö ÀÖ½À´Ï´Ù.
>
> request("idx")¸¦ üũÇØ º¸½Ã±â ¹Ù¶ø´Ï´Ù.
>
-----------------------------------------------------------
俵´Ô È®ÀÎ °á°ú ÀÌ·¸°Ô ³ª¿Ô°Åµç¿ä.board_idxÀÌ Áö»óÇÑ°ÇÁö È®ÀÎÀÌ ¾ÈµÇ¼ ¸»ÀÔ´Ï´Ù.»Ñ·ÁÁø °á°ú¸¦ º¸¸é ÀÌ·±½ÄÀ¸·Î ³ª¿À´Âµ¥,
where board_idx = board_idx
ÀÌ°÷ÀÌ À߸øµÈ°ÇÁö È®½ÅÀÌ ¾È¼°Åµç¿ä
UPDATE myboard set name = 'ÀÌ°Ô¹¹¾ß¿ë',email = 'banext84@hanmail.net',url= 'http://test',title='¸ô¶ó¿ë',company='1',shipment='2',desired= '3',country='4',vdate='5',mcode='6',pregident='7',depart='8',addre='¼¿ï½Ã °³²±¸ ´ëÄ¡µ¿',tel='00-000-0000',fax='00-111-1111',content='´ÙÀ½°ú °°ÀÌ Å½ºÆ® ÁßÀÔ´Ï´Ù.' where board_idx = board_idx
ÀÀ´ä °³Ã¼ error 'ASP 0156 : 80004005'
¸Ó¸®±Û ¿À·ù
/offer/sell/edit_ok.asp, line 55
Ŭ¶óÀ̾ðÆ® ºê¶ó¿ìÀú¿¡ HTTP Çì´õ°¡ ÀÌ¹Ì ¾²¿© ÀÖ½À´Ï´Ù. HTTP Çì´õ´Â ÆäÀÌÁö ³»¿ëÀ» ¾²±â Àü¿¡¸¸ ¼öÁ¤ÇØ¾ß ÇÕ´Ï´Ù.
|
|
|
|