|
|
|
|
俵ÀÌ / 2001-09-26 / ¿ÀÀü 10:14:49 / 203.255.3.190
Á¶È¸¼ö : 135
|
[Áú¹®] Áú¹®ÀÔ´Ï´Ù...¿À·ù
|
> Microsoft VBScript ·±Å¸ÀÓ ¿À·ù (0x800A000D)
> Çü½ÄÀÌ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù
> /mdmusic/update_ok.asp, line 44
> -------------------------------------------
> file = UploadForm("music")
>
> attach_file = file.FilePath
> filename = Mid(attach_file, InstrRev(attach_file, "\") + 1) ' ÆÄÀϸíÀ» ¾ò´Â´Ù.
> filetype = right(FileName,4)
> save_music = music_folder & "\" & filename ' ÀúÀåÇÒ ÆÄÀÏÀÇ °æ·Î ¼³Á¤
> db_music = filename 'µðºñ¿¡ ÀúÀåµÇ´Â À̸§
> If (FSO.FileExists(save_music)) Then ' °°Àº À̸§ÀÇ ÆÄÀÏÀÌ ÀÖÀ» ¶§ »èÁ¦
> count = 0
> do while FSO.FileExists(save_music)
> count = count + 1
> save_music = music_folder & "\" & CStr(count) & filename
> db_music = CStr(count) & filename 'µðºñ¿¡ ÀúÀåµÇ´Â ¹Ù²î´Â À̸§
> Loop
> End If
> File.SaveAs save_music ' ÆÄÀÏÀ» ¾÷·Îµå
>
> Set FSO = Nothing
> %>
> <-----¿©±â°¡ ¶óÀÎ 44Àӵ¤ѤÑ;
> <%
> title = UploadForm("title")
> title = replace(title,"'","''")
> music_time = UploadForm("minute")*60 + UploadForm("second")
> category = UploadForm("category")
> category = replace(category,"'","''")
> new_category = UploadForm("new_category")
> new_category = replace(new_category,"'","''")
> page = UploadForm("page")
> music_name = replace(db_music,"'","''")
>
> if category = "" then
> category = new_category
> end if
>
> db.Open DSNName
>
> Sql = "insert into music (title,music,music_time,category,date) values ("
>
> Sql = Sql & "'" & title & "',"
> Sql = Sql & "'" & music_name & "',"
> Sql = Sql & music_time & ","
> Sql = Sql & "'" & category & "', GetDate())"
-----------------------------------------------------------
½Ã¾ÖƲ´ÔÀ̽ÃÁÒ? À̸§ Á» ¹Ù²ÙÁö ¸¶¼¼¿ä.... ^^
»ç¿ëÇÏ½Ã´Â°Ô »çÀÌÆ®°¶·°½Ã¶ó°í »ý°¢ µÇ´Âµ¥...
File.SaveAs save_music
ÀÌ°Ô ¸Â³ª¿ä?
UploadForm("music").SaveAs save_music
ÀÌ·¸°Ô ÇØ¾ß µÇÁö ¾Ê³ª¿ä?
|
|
|
|