I want to add a search box that will return results from a mysql database. Does anyone know of any good tutorials for this? Let me know if you need more info. Thanks!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why not just pass the search text to a query and return the result?
For example, you would pass the search String to some persistence layer (JDBC, JPA etc.) and use the correct query syntax for that layer.
A more flexible yet more complicated approach would be to use a search engine like Lucene and create a search index for your database.