ASP条件查询啊
xx.asp?classname=网卡天线(点击这个、把全部产品都列出来了)
xx.asp?classname=公话天线(点这个、就正确列出符合条件的产品)
==========库数据==========
ID Nclassname
1 网卡天线
2 网卡天线
3 公话天线
4 公话天线
==========================
==========================
if request("classname")<>"" then
sql="select * from product where Nclassname='"&trim(request("classname"))
else
sql="select small_pic,productno from product"
end if
===========================
帮我看看是什么原因啊!有什么方法优化一下吗?