title: Can't connect to a database with PHP PDO
body: <p>I want to connect to my localhost database but my code doesn't work.
  Here's my code:</p>
  
  <pre><code>&lt;?php
  try 
  {
      $pdo = new PDO('mysql:host=localhost;', 'root', 'pass');
  }
  catch (PDOException $e) 
  {
      die("Can't connect with Database");
  }
  
  ?&gt;
  </code></pre>
  
  <p>Can someone please hlep me?
  thanks</p>