帮忙看下,谢谢!
<%'写入数据库
set upload=new upload_5xSoft
dim Sql,InsertCursor
Set InsertCursor = Server.CreateObject("ADODB.Recordset")
InsertCursor.open "SELECT * FROM "&kuname&"",conn,1,3
InsertCursor.Addnew
InsertCursor("Description") = upload.form("Description")
formPath="../"&foldername&"/"
iCount=0
for each formName in upload.objFile
set file=upload.file(formName)
if file.FileSize>0 then '如果 FileSize > 0 说明有文件数据
Dim sRnd
sRnd = Int(900 * Rnd) + 100
fileName=file.FileName
filename=year(now) & month(now) & day(now) & hour(now) & minute(now) & second(now) & sRnd&right(fileName,(len(fileName)-InStrRev(fileName,".")+1))
file.SaveAs Server.mappath(formPath& FileName) ''保存文件 z<br />
response.write file.FilePath & file.FileName &" (" & file.FileSize & ") => " & filename & " 成功!<br>"
iCount=iCount+1
InsertCursor("imgx") = filename //插入数据库,
InsertCursor("imgd") = filename //插入数据库, 本来是插入不同的图片,结果上传了两个图片,两个字段插入了一个图片
end if
set file=nothing
next
InsertCursor.Update
InsertCursor.close
conn.close
set InsertCursor=nothing
set conn=nothing
%>
// InsertCursor("imgx") = filename //插入数据库,
InsertCursor("imgd") = filename 这两句需要怎么改啊.
set upload=new upload_5xSoft
dim Sql,InsertCursor
Set InsertCursor = Server.CreateObject("ADODB.Recordset")
InsertCursor.open "SELECT * FROM "&kuname&"",conn,1,3
InsertCursor.Addnew
InsertCursor("Description") = upload.form("Description")
formPath="../"&foldername&"/"
iCount=0
for each formName in upload.objFile
set file=upload.file(formName)
if file.FileSize>0 then '如果 FileSize > 0 说明有文件数据
Dim sRnd
sRnd = Int(900 * Rnd) + 100
fileName=file.FileName
filename=year(now) & month(now) & day(now) & hour(now) & minute(now) & second(now) & sRnd&right(fileName,(len(fileName)-InStrRev(fileName,".")+1))
file.SaveAs Server.mappath(formPath& FileName) ''保存文件 z<br />
response.write file.FilePath & file.FileName &" (" & file.FileSize & ") => " & filename & " 成功!<br>"
iCount=iCount+1
InsertCursor("imgx") = filename //插入数据库,
InsertCursor("imgd") = filename //插入数据库, 本来是插入不同的图片,结果上传了两个图片,两个字段插入了一个图片
end if
set file=nothing
next
InsertCursor.Update
InsertCursor.close
conn.close
set InsertCursor=nothing
set conn=nothing
%>
// InsertCursor("imgx") = filename //插入数据库,
InsertCursor("imgd") = filename 这两句需要怎么改啊.
...全文
相关推荐
JSP语法分析下载,很基础的知识!值得看下
**声明(Declarations)**:`<%! declaration %>` 用于声明变量或方法,这些变量和方法可以在整个JSP页面中使用。5.
抓包工具!稳定版本很强大汉化的不错!可以看下
在IT行业中,抓包工具是网络分析和故障排查的重要辅助软件。它们能够捕获网络上的数据包,让我们得以深入理解网络通信的过程,检测潜在的问题,或者进行安全审计。标题和描述都提到了“抓包工具”、“稳定版本”和“
万年历用C语言编的一一个程序!
很好的!这个对课程设计很有用 建议大家看下!真的,谢谢了各位
复试科目《网络工程》参考资料
复试科目《网络工程》参考资料,大家可以下载看下,加油!复试科目《网络工程》参考资料,大家可以下载看下,加油!
dont-look-down:不要看不起! Oculus Rift的游戏,只有低头看你才会摔倒
《不要看不起!Oculus Rift游戏开发中的"不要看下"策略》在虚拟现实(VR)游戏领域,Oculus Rift作为一款领先的头戴式显示器,为玩家带来了沉浸式的游戏体验。


