php-doc-en/reference/fbsql/functions/fbsql-select-db.xml
Damien Seguy 445ff92afd use of &return.success;
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@116957 c90b9560-bf6c-de11-be94-00142212c4b1
2003-02-18 18:08:34 +00:00

75 lines
2.5 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/fbsql.xml, last change in rev 1.1 -->
<refentry id="function.fbsql-select-db">
<refnamediv>
<refname>fbsql_select_db</refname>
<refpurpose>Select a FrontBase database</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>bool</type><methodname>fbsql_select_db</methodname>
<methodparam><type>string</type><parameter>database_name</parameter></methodparam>
<methodparam choice="opt"><type>resource</type><parameter>
link_identifier
</parameter></methodparam>
</methodsynopsis>
<para>
<function>fbsql_select_db</function> sets the current active
database on the server that's associated with the specified link
identifier. If no link identifier is specified, the last opened
link is assumed. If no link is open, the function will try to
establish a link as if <function>fbsql_connect</function> was
called, and use it.
</para>
<para>
&return.success;
</para>
<para>
The client contacts FBExec to obtain the port number to use for
the connection to the database. If the database name is a number
the system will use that as a port number and it will not ask
FBExec for the port number. The FrontBase server can be stared
as FRontBase -FBExec=No -port=&lt;port number&gt; &lt;database
name&gt;.
</para>
<para>
Every subsequent call to <function>fbsql_query</function> will be
made on the active database.
</para>
<para>
if the database is protected with a database password, the user must
call <function>fbsql_database_password</function> before selecting
the database.
</para>
<para>
See also
<function>fbsql_connect</function>,
<function>fbsql_pconnect</function>,
<function>fbsql_database_password</function>, and
<function>fbsql_query</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->