cedsn
08-13-2002, 05:37 AM
how do i get fuzzy or pattern matches from mysql?
for example, i have an entry,
APP 11-32
now, i have set up a search script that querys the db with
select * from table where partnumber = "$query";
and this works fine as long as i type it in exactly..
however i want ppl to be able to type in get matches with queries such as
app11/32
app-11-32
11-32
1132
.. etc, and still get matches. any ideas?
i am using perl to write the scripts.
thanks, jesse
for example, i have an entry,
APP 11-32
now, i have set up a search script that querys the db with
select * from table where partnumber = "$query";
and this works fine as long as i type it in exactly..
however i want ppl to be able to type in get matches with queries such as
app11/32
app-11-32
11-32
1132
.. etc, and still get matches. any ideas?
i am using perl to write the scripts.
thanks, jesse