Yamaha32088 Posted March 8, 2008 Share Posted March 8, 2008 I was hoping someone could help me out with a search function. How do i create a text field on a html/php website that will search a MySQL database in a certain table/row for the text specified in the text field. Quote Link to comment Share on other sites More sharing options...
awpti Posted March 8, 2008 Share Posted March 8, 2008 http://www.w3schools.com/html/html_forms.asp Vague question gets a direct answer. Quote Link to comment Share on other sites More sharing options...
ohdang888 Posted March 8, 2008 Share Posted March 8, 2008 well, use a html form. Google it. and to carry about what users have put in the text field, use a query $result = mysql_query("SELECT * FROM `table` WHERE `field` = '{$input}' ") or die(mysql_error()); thats an extremely simple search engine that won't be the most effective, but start from there, and learn as you go along. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.