title: how to set mysql database connection name
body: <p>I'm trying to figure out how can I put two differents MYSQL database connections name on the same page, one is for local PC and one is for hosting server.</p>
  
  <p>Does is possible to have two different databases servers name on the same page so that way not to change connection database name in a script before upload. </p>
  
  <p>I have code like this for local PC </p>
  
  <pre><code>&lt;?php
  $username = "your_name";
  $password = "your_password";
  $hostname = "localhost"; 
  
  //connection to the database
  $dbhandle = mysql_connect($hostname, $username, $password) 
    or die("Unable to connect to MySQL");
  echo "Connected to MySQL&lt;br&gt;";
  ?&gt;
  </code></pre>
  
  <p>Can can i add another connection name in the server in same page without changing the connection database!</p>
  
  <p>alidad</p>