title: Localhost php_network_getaddresses: getaddrinfo failed: No such host is known
body: <p>I am using Localhost with UniServer, running Apache and MySQL. (There is no username or password)<br />
  I have the code <code>new mysqli("http://localhost/us_phpmyadmin/","","","url_short");</code> to connect to my Localhost server, but when I try to run the code <code>mysqli_query("INSERT INTO cut.it VALUES (NULL, $longurl, $shorturl)");</code>
  , the error <code>php_network_getaddresses: getaddrinfo failed: No such host is known.</code> comes up on the page. Why is this and how can I get around it?</p>