<%
On Error Resume Next
page_no=request.QueryString("page_no")
if page_no="" or not isnumeric(page_no) then page_no=1
if page_no>99 then page_no=99
start_price=request("start_price")
end_price=request("end_price")
if cid="" then cid="0"
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from xz_class where xz_cid='"&cid&"'",conn,1,1
if not rs.eof then
catename=rs("xz_lm")
set rss=server.CreateObject("adodb.recordset")
rss.open "select * from xz_class where xz_pid='"&cid&"'",conn,1,1
if rss.eof and rss.bof then
pidstr=rs("xz_pid")
else
pidstr=rs("xz_cid")
end if
rss.close
end if
rs.close
if cid="0" then pidstr=0
%>