asp读取指定文件夹下所有图片名字记录到sql数据库相应字段中
<!--#includefile="database.inc"--><%'输出图片j=1i=startSetpp=NewpossibleDoWhilei<offsetth...
<!--#include file="database.inc" -->
<%
'输出图片
j = 1
i = start
Set pp = New possible
Do While i < offset
thisPicPath = server.mappath("/YLCN/Shop/personPhotos/" & fileArray(i))
If j > cEachLineMax Then
j = 1
response.Write "</tr><tr>"
End If
picturename = left(fileArray(i),len(fileArray(i)))-4)
sql="select * from btype where usecode ="&picturename
rs.open sql,conn,1,3
rs("picturename")=fileArray(i)
rs.update
rs.close
Loop
Set pp = Nothing
Set rs = Nothing
%>
错误类型:语句未结束
picturename = left(fileArray(i),len(fileArray(i)))-4)
Microsoft VBScript 运行时错误 (0x800A01C2)
错误的参数个数或无效的参数属性值: 'left'
/x1.asp, 第 11 行 展开
<%
'输出图片
j = 1
i = start
Set pp = New possible
Do While i < offset
thisPicPath = server.mappath("/YLCN/Shop/personPhotos/" & fileArray(i))
If j > cEachLineMax Then
j = 1
response.Write "</tr><tr>"
End If
picturename = left(fileArray(i),len(fileArray(i)))-4)
sql="select * from btype where usecode ="&picturename
rs.open sql,conn,1,3
rs("picturename")=fileArray(i)
rs.update
rs.close
Loop
Set pp = Nothing
Set rs = Nothing
%>
错误类型:语句未结束
picturename = left(fileArray(i),len(fileArray(i)))-4)
Microsoft VBScript 运行时错误 (0x800A01C2)
错误的参数个数或无效的参数属性值: 'left'
/x1.asp, 第 11 行 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询