title: PHP not accessing database on server but accessing database on localhost
body: <p>I've been trying to rectify this for days but it's leading me no where
  It works well on localhost, but no accessing database on the remote server
  I've spent a lot of hours on this</p>
  
  <p>Here is the code:   </p>
  
  <pre><code>$mysqli = mysqli_connect ('scholars.lextoXXX.com', 'scholars_root', '', 'scholars_crud') OR
  trigger_error("Could not connect to the database!\n&lt;br /&gt;MySQL Error: " .
  mysqli_connect_error());
  </code></pre>
  
  <p>Is there a configuration for that on the server.</p>
  
  <p>Thank you.</p>