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. Link to comment https://forums.phpfreaks.com/topic/95010-super-simplephp-search-function/ 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. Link to comment https://forums.phpfreaks.com/topic/95010-super-simplephp-search-function/#findComment-486677 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. Link to comment https://forums.phpfreaks.com/topic/95010-super-simplephp-search-function/#findComment-486680 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.