Hello world, does anyone have php code for search bar? it would really help!! or can you give me some heads up or link where can i learn it step by step? Thank you for your time and help, i appreciate it
There isn't really much to it. You have a regular form, with a search field and the submit button. - Upon submitting, you use $_GET[] or $_POST[] (whichever you're using) to get the value of the submitted search box - Sanitize the input - Query database using LIKE instead of = - Show results The database query may look like.. SELECT * from `users` WHERE `name` LIKE '%$search_string%' Code (markup):