title: Simple MYSQL Query Not Returning Results using PHP
body: <p>I am trying to run a simple select statement using PHP and I'm certain there should be results but I am not receiving any data when I run the page.</p>
  
  <pre><code>$username = 'racarric';
  $username_check = "SELECT * FROM users WHERE username = '$username'";
  
  if (mysql_num_rows($username_check) &gt; 0) {
      echo "Username is already in use";
      //break;
  }
  else {
      echo "No users have this username";
  }
  </code></pre>
  
  <p>In my database I have a record where username is 'racarric'.</p>