´ç½Å¿¡°Ô·Î ¶°³ª´Â ²Þ¼Ó¿©Çà - ²Þ¼Ó³ª¶ó(http://www.inyourdream.net) ÀÔ±¹Çϱâ | ¿µÁÖ±Ç ½Åû
  • ¸öºÎ¸² °ñ¶ó°ñ¶ó
  • ¼Ò±Ù¼Ò±Ù
  • µµ¶õµµ¶õ
  • ³«¼­¸¶´ç
  • Âø°¢ÇѾÆÀÌ
  • ¼ýÀÚ¸ÂÃß±â
  • ¼Ò¿øºô±â
  • ÈçÀû³²±â±â
  • ²Þ¼Ó¿©Çà
  • Ä£±¸Áý ³î·¯°¡±â
  • ¸ðµÎµå¸²´ÔÀÇ È¨
  • î¤éÞ´ÔÀÇ È¨
  • Çö¿ì´ÔÀÇ È¨
  • º°¾ÆÇØ´ÔÀÇ È¨
  • ÇÞ»ì´ÔÀÇ È¨
  • À̳ª´Ï´ÔÀÇ È¨
  • À¯¸®¾Ë´ÔÀÇ È¨
  • ³È³ÈÀÌ´ÔÀÇ È¨
  • ²ÀÁö´ÔÀÇ È¨
  • ´ë¼º´ÔÀÇ È¨
  • ½Å¼øÀ¯ / 2001-06-28 / ¿ÀÀü 9:56:32 / 211.248.15.56
    Á¶È¸¼ö : 130
    [Áú¹®] ¾Ñ.. ÀÚ·á´Â ¾÷ÀÌ µÇ´Âµ¥?
    ¾È³çÇϼ¼¿ä..?

    ¸ÓÁ» ¹°¾îº¸·Á°í Çϴµ¥¿ä...½áµµµÉÁö..

    site galaxy¸¦±ò°í..Á¦°¡ °Ô½ÃÆÇÀ» ¸¸µé´Ù°¡ ÀÚ·á½Ç·Î °³ÆíÀ» ÇÏ´Â ÁßÀÔ´Ï´Ù.±×·±µ¥..

    ÀÚ·á¾÷·Îµå¸¦ Çϸé...ÀÚ·á´Â ÀÚ·á´ë·Î ÀúÀåÀÌ µË´Ï´Ù.
    ¹®Á¦´Â.. ¿¢¼¼½º¸¦ »ç¿ëÇϴµ¥ ¿¢¼¼½º db¿¡ ÀúÀåÀÌ ¾ÈµÈ´Ù´Â°Ì´Ï´Ù.

    ¿¢¼¼½º db¿¡ ÀúÀåÀÌ ¾ÈµÇ´Ï..±ÛÀ» ¾µ ¼ö°¡ ÀÖ¾î¾ß ¸»ÀÌÁÒ..
    ½î½º¸¦ ¿Ã·Áµå¸±Å×´Ï..Çѹø º¸½Ã°í.. °¡¸£ÃÄ ÁÖ¼¼¿ä..

    ±×¸®°í...ÀÚ·áÀÇ ¿ë·® Á¦ÇÑÀº ¾î¶»°Ô ÇؾâÁö¿ä.?
    rs_up_size ÀÇ ¿ë·®°è»êÀÌ ¾ÈµÇ¼­ 0À¸·Î 󸮸¦Çß½À´Ï´Ù.

    ¹Ì¸® °¨»çµå¸³´Ï´Ù.

    <!--#include virtual='dbopen.inc'-->
    <!--#include virtual='board_setting.inc'-->
    <%
    response.expires = 0
    response.buffer = true
    ON ERROR RESUME NEXT

    SET uploadform = server.createobject("sitegalaxyupload.form")
    rs_id = uploadform("id")
    rs_user = uploadform("user")
    rs_passwd = uploadform("passwd")
    rs_email = uploadform("email")
    rs_homepage = uploadform("homepage")
    rs_mailreceive = uploadform("mailreceive")
    rs_html = uploadform("html")
    rs_header = uploadform("header")
    rs_title = uploadform("title")
    rs_content = uploadform("content")
    rs_up_name = uploadform("up_name")
    rs_up_size = uploadform("up_size")
    rs_up_desc = uploadform("up_desc")
    rs_ipaddr = uploadform.Servervariables("remote_host")
    rs_up_name = uploadform("up_name")
    rs_up_desc = uploadform("up_desc")
    rs_up_size = 0
    rs_up_path = server.mappath(".")& "/file_up/"
    rs_up_name = mid(rs_up_name,instrrev(rs_up_name , "\" ) + 1 )
    uploadform("up_name").SaveAs rs_up_path & rs_up_name

    ' ¿äºÎºÐÀÌ ¹ºÁö ¸ð¸£°Ú¾î¿ä... À̺κÐÀ» ½ÇÇàÇÏ¸é ¿¡·¯°¡ ÀÖ´Ù°í ±×·¡¼­ ½ÇÇà ¾ÈÇÏ°í
    'ÁÖ¼®À¸·Î ó¸®Çß½À´Ï´Ù.
    ' IF Err THEN
    ' response.write err.number & "<br>" & err.source & "<br>" & err.description
    ' set uploadform = nothing
    ' 'response.end
    ' END IF

    SET uploadform = nothing
    %>
    <!--#include virtual='writecontrol.inc'-->
    <%
    IF rs_mailreceive = "on" THEN
    rs_mailreceive = 1
    ELSE
    rs_mailreceive = 0
    END IF
    IF rs_html = "on" THEN
    rs_html = 1
    ELSE
    rs_html = 0
    END IF

    sql = "SELECT id FROM " & bd_id & " ORDER BY id DESC"
    rs.pagesize = 1
    rs.open sql,db,1

    IF rs.eof then ' ±âÁ¸ÀÇ ±ÛÀÌ ÇÑ°³µµ ¾ø´Ù¸é?
    maxid = 1 ' ù¹ø° ±Û
    else ' ±âÁ¸ÀÇ ±ÛÀÌ ÀÖ´Ù¸é ±× ±ÛÀº °¡Àå ¹øÈ£°¡ ³ôÀº¼öÀÌ´Ù.
    maxid = rs("id") + 1 ' ±Û¹øÈ£ = ±Û¹øÈ£ + 1
    end if ' ±Û¹øÈ£ Ãß°¡ ³¡
    rs.close

    IF rs_id = "" THEN '¸¸¾à ¹Þ¾Æ¿Â°Ô ¾ø´Ù¸é.... »õ±ÛÀ̹ǷÎ
    no = maxid
    no1 = maxid '¹Þ¾Æ¿Â°Ô ¾øÀ¸¹Ç·Î ±Û¹øÈ£(¸ð±Û)ÀÇ ¹øÈ£
    no2 = 0 '¸®ÇÃÀÇ ¼ø¼­
    no3 = 0 '¿¹ºñ¿ë.?
    ELSE '¸®ÇÃÀΰæ¿ì¶ó¸é? ¿©±â¼­ ¸®ÇÃÀÇ ¼ø¼­¸¦ ÆľÇÇÏ°í ´Ù½Ã ¼ø¼­¸¦ ±³Ã¼ÇØ¾ß ÇÑ´Ù.
    no1 = rs_id '¸ð±Û¹øÈ£´Â ¹ÞÀº°ª.
    sql = "SELECT no1,no2,no3 FROM " & bd_id & " WHERE id = " & rs_id '¸ð±ÛÀÇ µ¥ÀÌÅ͸¦ °¡Áö°í ¿È
    rs.open sql,db,1
    no = rs_id
    no1 = cint(rs("no1"))
    no2 = cint(rs("no2"))
    no3 = cint(rs("no3"))
    rs.close

    sql = "UPDATE " & bd_id & " SET no2 = no2 + 1 WHERE no1 = " & no1 & " and no2 > " & no2
    response.write sql & "<br>"
    db.execute sql

    no2 = no2 + 1
    no3 = no3 + 1
    END IF

    sql = "INSERT INTO " & bd_id & " ( id , no , no1 , no2 , no3 , user , passwd , email , homepage , ipaddr , count , wdate , "
    sql = sql & " header , title , content , up_name , up_size , up_desc , etc , mailreceive , html ) VALUES "
    sql = sql & "(" & maxid & "," & no & "," & no1 & "," & no2 & "," & no3 & ",'" & rs_user
    sql = sql & "','" & rs_passwd & "','" & rs_email & "','" & rs_homepage & "','" & rs_ipaddr
    sql = sql & "'," & 0 & ",'" & now() & "','" & rs_header & "','" & rs_title & "','" & rs_content
    sql = sql & "','" & rs_up_name & "'," & rs_up_size & ",'" & rs_up_desc & "','" & rs_etc & "'," & rs_mailreceive
    sql = sql & "," & rs_html & ")"

    response.write sql

    db.execute sql

    'sql À» Âï¾îºÁµµ sql±¸¹®Àº ÀÌ»óÀÌ ¾ø´Âµ¥ ... db¿¡ ÀúÀåÀÌ ¾ÈµË´Ï´Ù.
    Byte * 200 Byte À̳»·Î ÀÔ·ÂÇϼ¼¿ä À̸§ : Æнº¿öµå :