如何编写代码以在网络中进行灵活搜索 [英] How to write code for a flexible search in web

查看:65
本文介绍了如何编写代码以在网络中进行灵活搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友

我正在使用PHP和Mysql开发电影网站.我想在我的网站中建立一个灵活的搜索系统.这样,如果用户想从我的网站上搜索电影,即使有一些拼写错误,他也可以获取.

例如,如果我在数据库中保存了一个名称为"Pirates"的电影,并且用户通过输入"Piretes"进行了搜索,那么他应该会获得该电影.

为了达到我的目的,我应该编写哪种类型的代码.

Dear Friends

I am developing a movies webstie using PHP & Mysql. I want to make a flexible search system in my website. So that If a user wants to search a movie from my website, he can get it even with some spelling mistakes.

For example if I save a movie with the name "Pirates" in my database and user searches it by Entering "Piretes", He should get the movie.

What Type of code Should I Write to achieve my purpose.

推荐答案

以下是我在同一主题中的文章 ^ ]

Google会对此提供更多想法
Here is my article in the same subject Simple Pattern Matching Technique to Improve the Search Boxes[^]

Google will give more idea on that


这篇关于如何编写代码以在网络中进行灵活搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆