title: PHP mysqli acting really screwy
body: <p>I am attempting to use PHP to connect to a database for the first time. I found an online tutorial that was teaching me how to use <code>mysqli</code> to do this. It talked about <code>mysqli_connect($host, $name, $pass, $db)</code> and that worked just fine. The problem was when the tutorial asked me to check for errors using the function <code>mysqli_connect_errno()</code> because apparently whatever version of PHP I am running doesn't recognize that function. But according to the internets, im the only weirdo who's copy of PHP is having this issue. Why can't my PHP recgonize <code>mysqli_connect_errno()</code>? (Note: I am running wampserver on a Windows 8.1 desktop and PHP version is 5.5.12) (UPDATE: the actual username is supossed to be "web")</p>
  
  <p>Here is my PHP Code:</p>
  
  <pre><code>&lt;?php 
      $sql = mysqli_connect("localhost", "sweb", "nsjk99", "Inventory");
      if( mysqli_connect_errno() ) {
          die("Database connection failed: " . mysqli_connect_error() . "( " . mysqli_connect_errorno() . ")");
      } else {
          echo "&lt;p&gt;Your connection was a success&lt;/p&gt;";
      }
  ?&gt;
  </code></pre>
  
  <p>Result:</p>
  
  <p><a href="https://i.stack.imgur.com/mdaoS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mdaoS.png" alt="enter image description here"></a></p>