´ç½Å¿¡°Ô·Î ¶°³ª´Â ²Þ¼Ó¿©Çà - ²Þ¼Ó³ª¶ó(http://www.inyourdream.net) ÀÔ±¹Çϱâ | ¿µÁÖ±Ç ½Åû
  • ¸öºÎ¸² °ñ¶ó°ñ¶ó
  • ¼Ò±Ù¼Ò±Ù
  • µµ¶õµµ¶õ
  • ³«¼­¸¶´ç
  • Âø°¢ÇѾÆÀÌ
  • ¼ýÀÚ¸ÂÃß±â
  • ¼Ò¿øºô±â
  • ÈçÀû³²±â±â
  • ²Þ¼Ó¿©Çà
  • Ä£±¸Áý ³î·¯°¡±â
  • ¸ðµÎµå¸²´ÔÀÇ È¨
  • î¤éÞ´ÔÀÇ È¨
  • Çö¿ì´ÔÀÇ È¨
  • º°¾ÆÇØ´ÔÀÇ È¨
  • ÇÞ»ì´ÔÀÇ È¨
  • À̳ª´Ï´ÔÀÇ È¨
  • À¯¸®¾Ë´ÔÀÇ È¨
  • ³È³ÈÀÌ´ÔÀÇ È¨
  • ²ÀÁö´ÔÀÇ È¨
  • ´ë¼º´ÔÀÇ È¨
  • ½ºÄø® / 2001-01-15 / ¿ÀÈÄ 6:19:04 / 211.48.160.193
    Á¶È¸¼ö : 138
    [Áú¹®] ¹Î¸ÁÇÑ For Next..^^;
    俵´Ô..¼Ò½º ±¸Á¶°¡ ¾îÄÉ µÇ³Ä¸é¿ä
    ¸ÕÀú üũ¹Ú½º¸¦ ÅëÇؼ­ °ªÀ» ¹Þ¾Æ µå¸³´Ï´Ù.
    ±×·±´ÙÀ½¿¡ ·çÇÁ¸¦ µ¹¸é¼­
    row°ªµéÀ» »Ì¾Æ ³½ ´ÙÀ½¿¡

    ÇØ´ç row¿¡ image1 image2°ª¿¡ ¾÷·ÎµåµÈ À̹ÌÁöµéÀ»
    »èÁ¦ ½Ãų·Á±¸ Çϰŵç¿ä..

    ±×·±µ¥..Àß ¾ÈµË´Ï´Ù.
    Çϳª¾¿ Áö¿ï¶§´Â Àß µÇ´Âµ¥
    µÎ°³ ÀÌ»ó Áö¿ï·Á°íÇѱî..
    ¿¡·¯°¡..
    ·¹Äڵ尡 óÀ½°ú ³¡À̶ó..¾î¼±¸...Àú¼±¸....ÀÌ·± ¸Þ¼¼Áö ÀÖÀݾƿë^^;

    ¾îµð¼­ À߸ø..µÈ°É±î¿ä?

    ------------------------------------------------
    goods_id = Request("goods_id")

    if goods_id = "" then
    else
    goods_id_arr = Split(goods_id, ",")
    arr_cnt = UBound(goods_id_arr)
    dim del_image(1)

    Set Fso = Server.CreateObject("Scripting.FileSystemObject")

    For i = 0 to arr_cnt
    sql2 = "select goods_id, image1 as image0, image2 as image1 from goods_tb where goods_id = '"& goods_id_arr(i) &"'"
    response.write sql2
    set rs = db.execute(sql2)

    For j = 0 to 1
    del_image(j) = rs("image"&j)
    delfile=Server.MapPath("images")&"\"&del_image(j)
    response.write delfile
    if (Fso.FileExists(delfile)) Then
    Fso.DeleteFile(delfile)
    end if
    Next

    sql = "Delete From goods_tb Where goods_id = '"& goods_id_arr(i) &"'"
    db.execute(sql)
    Next

    Set Fso = nothing

    rs.close
    db.close
    set rs = nothing
    set db = nothing

    'response.redirect "goods_list.asp"

    end if
    Byte * 200 Byte À̳»·Î ÀÔ·ÂÇϼ¼¿ä À̸§ : Æнº¿öµå :