 <pre><code>It gives me a blank page. </code></pre> <p>Actually it should. You don't use output functions in code you shown. If you expected error messages, make sure you have <a href="http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors" rel="nofollow"><code>display_errors</code></a> enabled and <a href="http://php.net/manual/en/function.error-reporting.php" rel="nofollow"><code>error_reporting</code></a> to <code>E_ALL</code></p>