Home > Backend Development > PHP Tutorial > 怎么做一个tag标签页

怎么做一个tag标签页

WBOY
Release: 2016-06-13 11:13:15
Original
1699 people have browsed it

如何做一个tag标签页
如何做一个tag标签页
我看后台都是填写tag时,以逗号隔开。现在手上没有这方面的实例,很不解数据库应该怎么设计?是在文章表中建立一个tag字段,还是需要建立一个tag的表?数据如何存入和取出,希望懂的朋友能简单介绍一下。


------解决方案--------------------
引用:
编辑文章时在输入框中填了tag,那么保存文章时就要在tag中建一条记录吗,是不是还要判断tag表中是否已经存在此tag,只要没有才新建一条tag?是这样吗?

完全正确
Related labels:
tag
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template