All databases are designed to return results based on input.
However the ease of use will depend greatly on how you craft the database tables.
Javascript is a client side language, and as such can't access a database directly. Even using an intermediary layer such as Ajax requires server side language like PHP to actually connect to the database to request and return the results.
Any Pre-Made scripts would still require database in place with the products that its going to search in. If your website already has a database of products in place then you can use that in combination with a PHP, ASP etc.. script to craft the queries. The queries would depend largely on your specific return needs, and how the database has been constructed.
What server side language you choose depends on what your web host supports. If it supports Wordpress, then PHP would be the logical choice.
----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
Behind the Web, Tips and Tricks for Web Development.