boolean mysql_change_user(string $user, string $password [, string $database [, resource $res ]])
This function is deprecated and no longer exists in PHP
(PHP 3)
| $user | The database user name. |
|---|---|
| $password | The database user password. |
| $database | The database host name. |
| $res | The database connection resource that we want to modify. |
| RETURNS | True on success, False otherwise. |
Changes the logged-in user for the database connection ($res) specified.
This function is deprecated and no longer exists in PHP*
// open the mysql resource $res = mysql_connect($server, $user, $pass); // close the mysql resource if (!mysql_change_user($user2, $pass2)) echo 'Attempt to change user for DB connection failed';