so you want to enter a string into a textbox, press a submit button, pass that string to a database engine and display the results. This is no different than any other sql statement, but instead of defining the string in your code, you get it from $GET or $POST depending on how you set up your form.
So then... what have you tried that you are having issues with?