title: Warning: mysql_select_db() expects parameter 2 to be resource, boolean
body: <p>I've looked through all the other questions but somehow think mine is unique</p>
  
  <p>I get this error. It does connect to the database, as it does return results but I get errors like these.</p>
  
  <pre><code>Warning: mysql_connect() [function.mysql-connect]: Access denied for user '******'@'localhost' (using password: YES) in /home/*******/public_html/********/*******/module-initialize.php on line 15
  
  Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in /home/*******/public_html/********/********/module-initialize.php on line 16
  </code></pre>
  
  <p>I removed the real url for security reasons. and the code in the region for that error is</p>
  
  <pre><code>$link = mysql_connect($dbhost, $dbuser, $dbpass);
  mysql_select_db($dbname, $link);
  // make data query-safe
  $_GET = safe_data($_GET, 'query');
  </code></pre>