This content has been marked as final. Show 2 replies
I have a php search page where if I enter a search term the correct results are displayed as required. However if I leave the search box empty and press submit, the results page displays all the records from the MySql database.
How do I prevent this from happening? How could I display some sort of error message when the user tries to submit an empty search?