title: Can you join 2 databases in mysql using php?
body: <p>Is it possible to join 2 different databases in mysql using php?</p>
  
  <p>for instance:</p>
  
  <pre><code>$sql = "SELECT * FROM db1.table LEFT JOIN db2.table USING (id)";    
  $result = mysql_query($sql);    
  --
  </code></pre>
  
  <p>I know how to create multiple new different database connections using php.  But I'm unable to figure out if it's possible to acutally join two different databases in mysql using php in one query.</p>