title: php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not knownfailed?
body: <p>When I try to connect to host on mac using MAMP I get this error</p>
  
  <pre><code>php_network_getaddresses: getaddrinfo failed: nodename nor servname 
  provided, or not knownfailed
  </code></pre>
  
  <p>This is my php code.
      
  
  <pre><code>    $con=mysqli_connect("127.0.0.1”,”pks”,”sonisoni123”,”GDRS");
      Echo mysqli_connect_error();
      if($con)
      {
          echo "success";
      }
      else
      {
          echo "failed";
      }
  
  
      ?&gt;
  </code></pre>
  
  <p>I don't know where I am going wrong any help would be appreciated.</p>