Name
mysql_select_db( )
Synopsis
mysql_select_db(database
[,connection
])
This sets the database to be used by the current MySQL connection, but you also can use it to set the database for another connection by supplying it as a second argument. The function returns true if it’s successful; it returns false if it’s unsuccessful.
... $connection = mysql_connect('localhost','tina','muller'); mysql_select_db('workrequests', $connection); ...
Get MySQL in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.