Jump to content

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

Wait... Are you having the user's input as the MySQL connection's information? If so, that's a massive no-no, for obvious reasons (which can be explained if you want).

 

would like to rub minds with any one

I got a weird picture in my head after reading this...

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.