Re: php code review and help
| From: | Jonathan Sundquist | Date: | Mon, 24 Feb 2014 18:17:40 +0000 |
| Subject: | Re: php code review and help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-322972@lists.php.net to get a copy of this message | ||
On Mon, Feb 24, 2014 at 12:16 PM, PIYUSH DAS <das.piyush2009@gmail.com>wrote:
> Kindly consider the following code
>
> function dbOpen()
> {
>
> $this->_dbCon=mysql_connect($this->_dbhostName,$this->_dbUser,$this->_dbPwd)
> or die ("Could not connect DB");
> mysql_select_db($this->_dbName,$this->_dbCon) or die ("Could not select
> DatabaseClass");
> }
>
> i am getting an error
> Warning: mysql_connect() [<a
> href='function.mysql-connect'>function.mysql-connect</a>]: Access denied
> for user 'Piyush'@'localhost' (using password: YES) in
> C:\wamp\www\lib\db.php on line*897*Call Stack
>
> --
> PIYUSH DAS
> LUCKNOW
> 9648916741/9208275121
>
Typically means you have entered the wrong password. Verify your username,
hostname, and password then try again.