title: Check if remote database is connected
body: <p>I'm currently connecting to a remote database</p>
  
  <pre><code>mysqli_connect('ip','username','password','db');
  </code></pre>
  
  <p>the connection is successful but I want to have validations if the computer is offline. how can I validate it? Thanks</p>