reference/mysqli/functions/mysqli-connect.xml
be526864c9777106cd78a517628847b60743e2d4
...
...
@@ -11,8 +11,14 @@
11
11
<para>
12
12
&info.function.alias; <methodname>mysqli::__construct</methodname>
13
13
</para>
14
+
<note>
15
+
<para>
16
+
If mysqli exception mode is not enabled and a connection fails,
17
+
then <function>mysqli_connect</function> returns &false; instead of an object.
18
+
The <function>mysqli_connect_error</function> function can be used to fetch the connection error.
19
+
</para>
20
+
</note>
14
21
</refsect1>
15
-

16
22
</refentry>
17
23

18
24
<!-- Keep this comment at the end of the file
...
...
@@ -35,4 +41,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
35
41
vim: et tw=78 syn=sgml
36
42
vi: ts=1 sw=1
37
43
-->
38
-

39
44