Database error does not works properly!!!!!!
| From: | moses at softwaysolutions dot com | Date: | Mon, 08 May 2006 07:34:08 +0000 |
| Subject: | Database error does not works properly!!!!!! | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-23991@lists.php.net to get a copy of this message | ||
Hi Everybody
Though i give wrong details in DSN while connecting to the
database I could not catch the error
Example
1)Correct Declaration
$dsn = 'mysql://root:@localhost/student';
if(PEAR::isError($db))
{
die($db->getMessage());
}
echo "<br> Database Connected";
The above dsn is correct so database is sucessfully connected.
2)Now I am giving wrong declaration to the dsn
$dsn = 'mysql://roooooooot:@localhost/student';
Though i am giving wrong details
No error message is displayed why??????
regards
moses