½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 352 | Á¶È¸¼ö 4,806 | µî·ÏÀÏ 2010-10-14 21:21:12

´Ð³×ÀÓ

skymeet0

À̸ÞÀÏ

skymeet0@naver.com

Á¦¸ñ

asp ¼Ò½º¹®ÀÇ
³»¿ë

ÀÚ¹Ù¼Ò½ºÀä db Å×À̺íµî ´ÙÀִµ¥, ÀÚ·á½Ç¿¡ µ¥ÀÌÅÍ ¾÷·ÎµåÇÏ¸é ¿¡·¯°¡³ª³×¿ä.

Ȥ½Ã ¶óµµ Á» ºÁÁֽǼö ÀÖ´ÂÁö... ¿¡·¯ 500³ª³×¿ä ÆäÀÌÁö. ¾÷·Îµå ´©¸£´Â ¼ø°£

 

'DEXT.FileUpload °³Ã¼ »ý¼º
set o_upload = server.CreateObject("DEXT.FileUpload")
o_upload.DefaultPath = server.mappath("addfile/")
name  = trim(o_upload("name"))
title = trim(o_upload("title"))
content = Trim(o_upload("content"))
content = Replace(content,"'","")


o_upload.MaxFileLen = 10*1024*1024       'ÆÄÀÏÅ©±â 2¸Þ°¡·Î Á¦ÇÑ
ntc_addfile = o_upload("filename").Save( ,false )        'ÆÄÀÏÀúÀå
ntc_addfile = mid(ntc_addfile,InStrRev(ntc_addfile,"\")+1)  'ÆÄÀϸí

Set o_upload = Nothing

SQL = "SELECT Max(ntc_num) FROM data_tab"
Set RS = Server.CreateObject("ADODB.Recordset")
 RS.Open SQL,DBCon

If IsNULL(rs(0)) Then
   number = 1
else
   number = rs(0) + 1
End If

'/INSERT
sql="INSERT INTO data_tab ("
sql=sql&"name,title,content,filename,ntc_num"
sql=sql&") VALUES ( "
sql=sql&"'"&name&"','"&title&"','"&content&"', '" &ntc_addfile& "','"& number &"')"

'response.write sql
DBCon.Execute sql

RS.Close
Set RS = Nothing

%>

<SCRIPT LANGUAGE="JavaScript">
<!--
alert("µî·ÏµÇ¾ú½À´Ï´Ù..");
document.location.href="./list.asp";
//-->
</SCRIPT>

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
ranksa 2010-10-15 14:13:42
´ä±Û

500 ¿¡·¯¶óµµ ¿¡·¯¸Þ½ÃÁö¸¦ °°ÀÌ Ã·ºÎÇØÁÖ½Ã¸é ¾Æ½Ã´Â ºÐµéµµ
´äº¯À» ÁÖ½Ç ¼ö ÀÖÁö ¾ÊÀ»±î¿ä;

°Ë¹«Ç÷½Å 2010-10-18 10:05:34
´ä±Û

500 ¿¡·¯°¡ ³ª´Â°ÍÀº »ç¿ëÇϽô ºê¶ó¿ìÀú ¼³Á¤À» º¯°æÇؼ­
ASP ¿¡·¯°¡ ¶ßµµ·Ï ÇÒ ¼ö ÀÖ½À´Ï´Ù.
ÀͽºÇ÷η¯ â¿¡¼­ > µµ±¸ > ÀÎÅÍ³Ý ¿É¼Ç > °í±Þ > HTTP ¿À·ù Ç¥½Ã ¸¦ üũ ÇØÁ¦ ½ÃÄÑ ÁÖ¼¼¿ä.

ÀÌÀü°Ô½Ã±Û À©µµ¿ìâ 8°³¸¦ ¹Ýº¹Çؼ­ ¶ç¿ì±â.. 2010-10-14 14:20:23
´ÙÀ½°Ô½Ã±Û µå·Ó´Ù¿î ¸Þ´ºÀε¥ ÀͽºÇ÷η¯¿¡¼­µµ µÉ¼öÀÖ°Ô.. 2010-11-03 04:16:02