Jump to content

php5 mysql class issues


joeizang

Recommended Posts

Hi people,

 

sorry but I have a strange problem here? I have two classes that handle all database operations on my test site and another that handles validation of all sorts. I made a login page and made a loginprocess.php script that calls the classes and processes user login. After ironing out several bugs and errors one error stands out. The loginprocess script always says that a general user i created called sa has been denied access to my database.

 

        return mysql_connect($this->host, $this->user, $this->password);

now my question is this: is there something wrong with this line of code or is there any special way to create users in mysql. I used the GRANT ALL PRIVILEGES on the mysql command line. would like to rub minds with any one on this and see where it goes

Link to comment
https://forums.phpfreaks.com/topic/69020-php5-mysql-class-issues/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.