php-doc-en/reference/mysqli/functions/mysqli-select-db.xml
Georg Richter 8190ee59a5 little docu update
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@150059 c90b9560-bf6c-de11-be94-00142212c4b1
2004-01-28 23:18:42 +00:00

63 lines
1.9 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.6 $ -->
<refentry id="function.mysqli-select-db">
<refnamediv>
<refname>mysqli_select_db</refname>
<refname>mysqli->select_db</refname>
<refpurpose>Selects the default database for database queries</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>bool</type><methodname>mysqli_select_db</methodname>
<methodparam><type>object</type><parameter>link</parameter></methodparam>
<methodparam><type>string</type><parameter>dbname</parameter></methodparam>
</methodsynopsis>
<para>
The <function>mysqli_select_db</function> function selects the default
database (specified by the <parameter>dbname</parameter> parameter) to be
used when performing queries against the database connection
represented by the <parameter>link</parameter> parameter.
</para>
<note>
<para>
This function should only be used to change the default database for the connection.
You can select the default database with 4th parameter in <function>mysqli_connect</function>.
</para>
</note>
</refsect1>
<refsect1>
<title>Return values</title>
<para>
&return.success;
</para>
</refsect1>
<refsect1>
<title>See also</title>
<para>
<function>mysqli_connect</function>
<function>mysqli_real_connect</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
-->