verander je zoekopdracht in vind ik leuk.
$username = mysql_real_escape_string($username); // escape string before passing it to query.
$query = mysql_query("SELECT username FROM Users WHERE username='".$username."'");
MySQL is echter verouderd. Gebruik in plaats daarvan MySQLi of BOB