添加一个是否置顶字段就可以了。
比如添加的字段为 if_stick = 1表示置顶, = 0表示不置顶,
比如你按照时间显示文章,置顶的显示在最上面,排序的时候使用order by if_stick desc,add_time desc;
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!