Re: Database error does not works properly!!!!!!
| From: | Massimiliano Arione | Date: | Mon, 08 May 2006 07:55:50 +0000 |
| Subject: | Re: Database error does not works properly!!!!!! | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23994@lists.php.net to get a copy of this message | ||
moses@softwaysolutions.com wrote:
Really? Without decalring $db variable?? Interesting... -- Massimiliano Arione http://garakkio.altervista.orgThough i give wrong details in DSN while connecting to thedatabase I could not catch the error Example1)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.