⇧
vadnica-logo
My Services About the Project Telegram O meni O meni

mysqli_change_user()

The mysqli_change_user() function changes the user of the specified database connection and sets a new active database, completely resetting the session in the process.

EXAMPLE
RESULT
The result will be displayed here...

Practical use: This function is used when we want to completely reset the session and change the database within the same script. The advantage is that the function releases all locked tables and closes temporary tables, ensuring a clean working environment. Test it at home like this: