title: Trying to connect to mysql but getting a blank screen
body: <p>I've been trying to connect to a remote mysql server locally but whenever I try to run the page, the page is blank.</p>
  
  <pre><code>&lt;?php
  
      $hostname="xx.xx.xx.xxx";// Remote database server Domain name.
      $username="boss";// as specified in the GRANT command at that server.
      $password="TempPass12";// as specified in the GRANT command at that server.
      $dbname="questions";// Database name at the database server.
      $conn = mysqli($hostname, $username, $password, $dbname);
  
      // Check connection
      if ($conn-&gt;connect_error) {
          die("Connection failed: " . $conn-&gt;connect_error);
      } 
      echo "Connected successfully";
  ?&gt;
  </code></pre>