首先,得先新建一“搜索”分类,并绑定模板search.php,分类的路径为"search/"

其次,搜索框的表单代码要链接到“搜索”的路径,示例代码如下:
最后,编写模板search.php的搜索条件并保存上传,示例代码如下:其中,fulltext为搜索的条件,fulltext='ft_content'为全文模糊检索。
Copyright © 2007-2021 www.Focuznet.com All rights reserved. 粤ICP备08008106号 Powered by KingCMS.