|
|
|
|
Áú¹®ÀÌ¿ä / 2001-09-26 / ¿ÀÀü 3:23:05 / 211.110.89.62
Á¶È¸¼ö : 146
|
[Áú¹®] Áú¹®ÀÔ´Ï´Ù...¿À·ù
|
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())" |
|
|
|