<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.11 $ -->
<refentry xml:id="function.mysqli-init" xmlns="http://docbook.org/ns/docbook">
 <refnamediv>
  <refname>mysqli_init</refname>
  <refpurpose>Initializes MySQLi and returns a resource for use with mysqli_real_connect()</refpurpose>
 </refnamediv>

 <refsect1 role="description">
  &reftitle.description;
  <para>Procedural style:</para>
  <methodsynopsis>
   <type>mysqli</type><methodname>mysqli_init</methodname>
   <void/>
  </methodsynopsis>
  <para>Object oriented style (method):</para>
  <classsynopsis>
   <ooclass><classname>mysqli</classname></ooclass>
   <methodsynopsis>
    <type>mysqli</type><methodname>init</methodname>
    <void/>
   </methodsynopsis>
  </classsynopsis>
  <para>
   Allocates or initializes a MYSQL object suitable for
   <function>mysqli_options</function> and <function>mysqli_real_connect</function>.
  </para>
  <note>
   <para>
    Any subsequent calls to any mysqli function (except <function>mysqli_options</function>)
    will fail until <function>mysqli_real_connect</function> was called.
   </para>
  </note>
 </refsect1>

 <refsect1 role="returnvalues">
  &reftitle.returnvalues;
  <para>
   Returns an object.
  </para>
 </refsect1>

 <refsect1 role="seealso">
  &reftitle.seealso;
  <para>
   <simplelist>
    <member><function>mysqli_options</function></member>
    <member><function>mysqli_close</function></member>
    <member><function>mysqli_real_connect</function></member>
    <member><function>mysqli_connect</function></member>
   </simplelist>
  </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
-->