<%
al=requestquerystring("tl")
a2=requestquerystring("t2")
setcon=server.createobject("adodb.connection")
con.open "dsn=reg3"
setrs=server.createobject("adodb.recordset")
rs.cursortype=adopenstatic
if(a1<>"" and a2<>"") then
sql="select * from Tabci where zone='"&a1&"' and course="'&a2&"' and
status='yes'"
elseif(a1 <>"" and a2="") then
sql="select * from Tabci where zone='"&a1&"' and status='yes'"
elseif(a2<>"" and a1="") then
sql="select * from Tabci where course='"&a2&"' and status='yes'"
else
sql="select * from Tabci where status='yes"'
end if
rs.open sql,con
%>