title: PHP: Could not connect: Unknown MySQL host
body: <p>This might be a stupid question but, I am trying to connect to a database trough a PHP file:</p>
  
  <pre><code>&lt;?php
  $con = mysql_connect("host","username","password");
  if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
  
  mysql_select_db("my_db", $con);
  
  $result = mysql_query("SELECT * FROM wp_posts");
  
  while($row = mysql_fetch_array($result))
  {
  echo $row['post_title'] . " " . $row['ID'];
  echo "&lt;br /&gt;";
  }
  mysql_close($con);
  ?&gt;
  </code></pre>
  
  <p>But I am getting the following error:
  <code>Could not connect: Unknown MySQL server host 'ijsselmondenieuws.nl/' (11004)</code></p>
  
  <p>I am confused about what host I need to use. The website itself is <code>www.ijsselmondenieuws.nl</code>. For my own website I know its mysql50-c1.website.com.</p>
  
  <p>Any help is appreciated!</p>
  
  <p>Thanks,</p>
  
  <p>Jef</p>