Forum und email

mysql_change_user

(No version information available, might be only in CVS)

mysql_change_user — Change logged in user of the active connection

Popis

int mysql_change_user ( string $user , string $password [, string $database [, resource $link_identifier ]] )

mysql_change_user() changes the logged in user of the current active connection, or the connection given by the optional link_identifier parameter. If a database is specified, this will be the current database after the user has been changed. If the new user and password authorization fails, the current connected user stays active.

This function is deprecated and no longer exists in PHP.

Parametre

user

The new MySQL username.

password

The new MySQL password.

database

The MySQL database. If not specified, the current selected database is used.

link_identifier

Pripojenie k MySQL. Ak link identifier nie je zadaný, predpokladá sa posledné spojenie otvorené s mysql_connect(). Ak také spojenie nie je nájdené, pokúsi sa jedno vytvoriť ako keby bolo volané mysql_connect() bez argumentov. Ak sa náhodou nájde pripojenie, alebo je vytvorené, je vygenerované varovanie úrovne E_WARNING.

Vrátené hodnoty

Vracia TRUE pri úspechu alebe FALSE pri chybe.

ChangeLog

Verzia Popis
3.0.14 This function was removed from PHP.

Poznámky

Note: Requirements This function requires MySQL 3.23.3 or higher.