Skip to content
Advertisement

why PHP search page show blank box with no result?

I’m trying to do a search bar here. I have done my database, filled it with data, connected it to my php file, did the search bar code everything is fine but when i tried to search for a word its showing me blank box with zero result This is my db connect code

JavaScript

and this is search page code

JavaScript

this is my form page

JavaScript

I’m new to PHP

Advertisement

Answer

Your search field name is search in lowercase but you are checking for Search in $_POST which is capitalized. Make sure they match and it will fix the issue

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement