I am trying to make a page where users can type in a textbox the username of a user to check to see if they are banned from one of our servers.
The way I want to do this is it searches a database that contains all of the banned users and the reason they are banned. The user would type into a text box the username of the person and click search. It would then show any results. If results are found it would echo "User: Reason: Time: " but with stuff inside <> values from the database table, if nothing was found it would return "No matches found".
This can be done either through HTML, PHP, or whatever else there is to make this possible.
I tried using Creating a search form in PHP to search a database? but I got an error "Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/infini60/public_html/bans/search/index.php on line 36" Any fixes or solutions would be great.
Any help is greatly appreciated.