title: mysql_connect() issue
body: <p>I'm trying to connect to Mysql database with following Php code. But I get 2 error message.</p>
  
  <p><strong>Mysql Connect Code:</strong></p>
  
  <pre><code>&lt;?php
  define("HOST", "localhost" );
  define("USER", "root");
  define("PASS", "");
  define("DB", "classified");
  
  mysql_connect("HOST", "USER") or die("Cannot connect to database");;
  mysql_select_db("DB") or die("Cannot connect to select db");
  ?&gt;
  </code></pre>
  
  <p><strong>Error Message:</strong></p>
  
  <pre><code>Warning: mysql_connect(): php_network_getaddresses: getaddrinfo failed: No such host   
  is known. in D:\Software\Installed\xampp\htdocs\Classified-website\toplevel\content
  \database\databd.php on line 7
  
  Warning: mysql_connect(): php_network_getaddresses: getaddrinfo failed: No such host 
  is known. in D:\Software\Installed\xampp\htdocs\Classified-website\toplevel\content
  \database\databd.php on line 7
  
  Cannot connect to database.
  </code></pre>
  
  <p>Why I get this 2 error message. If i use without define function then it's working. BUT..</p>