if 函数设置 asp 编程

来源:百度知道 编辑:UC知道 时间:2024/06/04 06:50:27
<% if (rs("basket_count")>=1 and rs("basket_count"))<4 then
rs("price")=rs("price")
elseif rs("basket_count")>=4 and rs("basket_count")<7 then
rs("price")=rs("price")*0.90
elseif rs("basket_count")>=7 and rs("basket_count")<11 then
rs("price")=rs("price")*0.85
elseif rs("basket_count")>=11 and rs("basket_count")<15 then
rs("price")=rs("price")*0.80
elseif rs("basket_count")>=15 then
rs("price")=rs("price")*0.75
end if %>
为什么 rs("price") 的值会刷新而改变改变
http://www.yinotown.com/Basket.asp 这是网址解决问题加分+20

你把rs("price") 用response.write 输出来,看看每次是不是在变的。
还有,也不知道你的代码前面是有什么代码!

——————————————————————————————
我讨厌石家庄!

你一直在修改rs的修啊