Db select db: Difference between revisions From Online Manual

Jump to: navigation, search
No edit summary
m (refresh SMW properties)
 
Line 9: Line 9:
|return=Like [http://php.net/mysql_select_db mysql_select_db] returns true on success, false on failure.
|return=Like [http://php.net/mysql_select_db mysql_select_db] returns true on success, false on failure.
}}
}}
<noinclude>
<noinclude>
[[Category:Database Functions]]</noinclude>
[[Category:Database Functions]]</noinclude>

Latest revision as of 16:42, 11 October 2012

Usage:

$smcFunc['db_select_db'] (database_name, connection)


Description: In MySQL the function selects a database like the function mysql_select_db. In PostgreSQL returns always true since the database is selected upon creating the connection. In SQlite will do nothing as there is only one database per file.

Parameters:

  • database_name The name of the database you want to switch to.
  • connection

Return: Like mysql_select_db returns true on success, false on failure.



Advertisement: