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

mysqli_select_db()

The mysqli_select_db() function is used to change the default database for a specific connection. Once the database is selected, all subsequent queries will be executed against this database.

EXAMPLE
RESULT
The result will be displayed here...

Practical use: Although the database is usually specified during the mysqli_connect() call, this function allows us to switch to another database on the same server during script execution without having to create a new connection.