28,391
社区成员
发帖
与我相关
我的任务
分享
darry=split(did,",")
for i = 0 to ubound(darry)
if trim(darry(i))<>"" then
set rsd=server.CreateObject("adodb.recordset")
sqld="select Dprice from dishes where id='"&darry(i)&"'"
rsd.open sqld,open_conn(),1,1
pay(i)=trim(rsd("Dprice"))
end if
next
<%
did="1,2,3,4,5"
darry=split(did,",")
b=ubound(darry)
redim Dprice(b)
for i=0 to ubound(darry)
Dprice(i)=i
next
response.Write i&"<br>"
response.Write b&"<br>"
%>
did="1,2,3,4,5"
darry=split(did,",")
'dim Dprice(),b
b=ubound(darry)
redim Dprice(b)
for i=0 to ubound(darry)
Dprice(i)=i
response.Write Dprice(i)&":"&i&"<br>"
next
darry=split(did,",")
dim Dprice(),b
b=ubound(darry)
redim Dprice(b)
for i = 0 to ubound(darry)
if trim(darry(i))<>"" then
set rsd=server.CreateObject("adodb.recordset")
sqld="select Dprice from dishes where id='"&darry(i)&"'"
rsd.open sqld,open_conn(),1,1
Dprice(i)=rsd("Dprice")
Total = rsd("Dprice")+Total
end if
next
darry=split(did,",")
dim Dprice(),b
b=ubound(darry)
redim Dprice(b)
for i = 0 to ubound(darry)
if trim(darry(i))<>"" then
set rsd=server.CreateObject("adodb.recordset")
sqld="select Dprice from dishes where id='"&darry(i)&"'"
rsd.open sqld,open_conn(),1,1
Dprice(i)=rsd("Dprice")
Total = rsd("Dprice")+Total
end if
next
<%
Response.Write("darry:"&UBound(darry))
Response.Write("<br />pay:"&UBound(pay))
%>