Blogger Information
Blog 63
fans 2
comment 0
visits 163085
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
PHP实现消息置顶思路
书声的博客
Original
1320 people have browsed it

添加一个是否置顶字段就可以了。
比如添加的字段为 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!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post