在if($keyid){ $add="id in (".$keyid.") ";这里,增加 and isurl=0,最后效果为: if($keyid){ $add="id in (".$keyid.") and isurl=0";
在}else{ $e=$id+$num; $s=$id-$num; $add=" classid=".$classid." and id>".$s." and id<".$e;这里,增加 ." and isurl=0",最后效果为:
}else{ $e=$id+$num; $s=$id-$num; $add=" classid=".$classid." and id>".$s." and id<".$e." and isurl=0";