How to display 404 page when the user is not found.
Consider a website extracting username from $_GET variable like
example.com/users/?username=johndoe // Normal john doe's profile will be displayed
and
example.com/users/?username=jimmy //Should display 404 page without changing url
If a user is not found found in database.It should show a 404 page.
Thanks in Advance