602SQL Documentation Index  

wb_select_db

PHP

boolean wb_select_db( resource connection, string application )


Parameters

connection
Identifier of the open connection, returned by the wb_connect or wb_pconnect function.
application
Name of the application you'll be working with.


Description

This function opens the specified application - all SQL statements are then executed in this application context. If there is another application opened when this function is called, it'll be closed.

You don't need to use this function if the application is already selected during the actual connection as the wb_connect function parameter.



Returns

TRUE if successful, FALSE otherwise



Example