Error reporting is not working properly
<p>i have a php  page</p>

<p>While running it will display following messages</p>

<pre><code>Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'test'@'localhost' (using password: NO) in test_step2.php on line 64

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in test_step2.php on line 64

Notice: Undefined variable: exists in test_step2.php on line 341
</code></pre>

<p><strong>I want to avoid the displaying of these messages</strong></p>

<p>I have no access to <em>php.ini</em> file</p>

<p>i have tried the following code one by one to avoid the displaying of these messages</p>

<ul>
<li><p>error_reporting(0)</p></li>
<li><p>ini_set('display_errors',0);</p></li>
<li><p>error_reporting(E_NONE);</p></li>
</ul>

<p>but no use</p>

<p>Can any one help me to avoid the display of these messages</p>
