[QUOTE]if request("type2")<>"" then sql="select * from bb where info like '%"& request("type2") &"%' and aa_id="& request("id") &" order by id desc" else sql="select * from bb where aa_id="& request("id") &" order by id desc" end if[/QUOTE]
[CODE]if request("type2")<>"" then sql="select * from bb where info like '%"&request("type2")&"%' and aa_id="&request("id")&" order by id desc" else sql="select * from bb where aa_id="&request("id")&" order by id desc" end if[/CODE]
if request("type2")<>"" then sql="select * from bb where info like '%"& request("type2") &"%' and aa_id="& request("id") &" order by id desc" else sql="select * from bb where aa_id="& request("id") &" order by id desc" end if