title: HTML/PHP: mysql_fetch_array() expects parameter 1 to be resource, boolean
body: <p>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. </p>
  
  <p>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 &lt;> values from the database table, if nothing was found it would return "No matches found".</p>
  
  <p>This can be done either through HTML, PHP, or whatever else there is to make this possible.</p>
  
  <p>I tried using <a href="https://stackoverflow.com/questions/12747650/creating-a-search-form-in-php-to-search-a-database">Creating a search form in PHP to search a database?</a> 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.</p>
  
  <p>Any help is greatly appreciated.</p>