$showlinknum) { break; } $ids.=$dh.$infoid; $dh=','; $showno++; } if($ids) { $dh=''; $infosql=$empire->query("select isurl,titleurl,classid,id,newstime,username,userid,title from {$dbtbpre}ecms_".$class_r[$classid][tbname]." where id in (".$ids.") order by newstime desc limit ".$showlinknum); while($infor=$empire->fetch($infosql)) { $retids.=$dh.$infor['id']; $dh=','; $titleurl=sys_ReturnBqTitleLink($infor); ?>