db_select_db From Online Manual

Revision as of 17:32, 26 July 2011 by Emanuele (talk | contribs) (Created page with "{{smcfunc |function=db_select_db |usage=$smcFunc['db_select_db'] (database_name, connection) |description=In MySQL the function selects a database like the function [http://php....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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: