|
| |
|
|
<%
dim sql
name=request("name")
city=request("city")
if name="" and city="All" then
sql="select * from tblmembers order by name"
elseif name<>"" and city="All" then
sql="select * from tblmembers where name like '" & trim(name) & "%' order by name"
elseif name<>"" and city<>"All" then
sql="select * from tblmembers where name like '" & trim(name) & "%' and city='"&city&"' order by name"
elseif name="" and city<>"All" then
sql="select * from tblmembers where name like '" & trim(name) & "%' and city='"&city&"' order by name"
end if
rs.open sql,cn,1,2
if rs.state > 0 then
ct = rs.recordcount
pg = Request.QueryString("page")
if ct > 0 then
if pg = 1 then
rs.move 0
i = 1
else
h = (10 * (pg-1))
rs.move h
i = h +1
end if
%>
<% if Request.QueryString("mode") <> "" then %>
|
|
Search Result :
<% if h+10 < ct then %> <%=h+1%> to <%=h+10%> of <%=rs.recordcount%> found..
<% else %> <%=h+1%> to <%=ct%> of <%=rs.recordcount%> found..
<% end if %> |
| |
|
Search Criteria..... |
| |
|
|
Name : |
<% if trim(Request.Form("name")) = "" then
Response.Write "All"
else
Response.Write Request.Form("name")
end if
%> |
| |
|
|
City : |
<%=Request.Form("city")%> |
| |
|
|