Re: Database error does not works properly!!!!!!

From: Date: Mon, 08 May 2006 07:54:23 +0000
Subject: Re: Database error does not works properly!!!!!!
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23993@lists.php.net to get a copy of this message
moses@softwaysolutions.com wrote: > 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'; Please show us what your code between the first two quoted lines is ($dsn = ..., if()). If there would be no code in-between, then your problem would be obvious. Regards, Mark

« previous php.pear.general (#23993) next »