 <p>After you initialize the PDO object try setting the <a href="http://php.net/manual/en/pdo.setattribute.php" rel="nofollow">error mode</a> higher.</p> <p><code>$db-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);</code></p> <p>The default is <code>PDO::ERRMODE_SILENT</code> which will output no warnings/errors. With this default setting, you have to poll <a href="http://www.php.net/manual/en/pdo.errorinfo.php" rel="nofollow"><code>errorInfo()</code></a> to see error details.</p>