title: Unknown Database on Mysqli Connect... However it Does Exist
body: <p>I'm getting an error 1049 on my Mysql connect file, however I have verified this table exists.  And when I attempt to connect to it via PDO it works perfectly fine.  So obviously there's an error in my code I'm missing.</p>
  
  <p>My code:</p>
  
  <pre><code>&lt;?php
  
    $db = new mysqli('localhost', 'root', '', 'mysqliphp');
  
    if ($db-&gt;connect_errno) {
      die('Houston, we have a problem!');
    } else {
      Echo 'Everything is fine.';
    }
  
  ?&gt;
  </code></pre>
  
  <p>The error: </p>
  
  <pre><code>Warning: mysqli::__construct(): (HY000/1049): Unknown database 'mysqliphp' in C:\xampp2\htdocs\mysqliconnect.php on line 3
  Houston, we have a problem!
  </code></pre>
  
  <p>What is the issue?  Thanks in advance!</p>