<% set rs=server.createobject("adodb.recordset") sql="select top 1 id,title,kind from defaultupdate where childkind='Ë¢¿¨ÓÅ»Ý' order by posttime desc" rs.open sql,conn,1,1 if not rs.eof then id=rs("id") kind=rs("kind") '¾ø¶ÔÁ´½Ó htmlurl="discount_details2.asp?id="&id if len(kind)>5 then htmlurl=kind&"?id="&id end if response.Redirect(htmlurl) else response.Redirect("discount_index.asp") end if %>