sql="select top 8 [title],file_path,[image] from [article] where ArticleType=2 and id"&a_id&" and view_yes=1 order by [time] desc"改为sql="select top 8 [title],file_path,[image] from [article] where ArticleType=2 and stype=1 and id"&a_id&" and view_yes=1 order by [time] desc"其中stype=1是你的A产品分类的字段和ID值...