reference/mysqli/mysqli/error.xml
7e5d0d1bb69180c9de1992edf9613215c975fa57
...
...
@@ -10,11 +10,11 @@
10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
12
<para>&style.oop;</para>
13
-
<fieldsynopsis><type>string</type><varname linkend="mysqli.error">mysqli->error</varname></fieldsynopsis>
13
+
<fieldsynopsis><type>string</type><varname linkend="mysqli.error">mysqli-&gt;error</varname></fieldsynopsis>
14
14
<para>&style.procedural;</para>
15
15
<methodsynopsis>
16
16
<type>string</type><methodname>mysqli_error</methodname>
17
-
<methodparam><type>mysqli</type><parameter>link</parameter></methodparam>
17
+
<methodparam><type>mysqli</type><parameter>mysql</parameter></methodparam>
18
18
</methodsynopsis>
19
19
<para>
20
20
Returns the last error message for the most recent MySQLi function call
...
...
@@ -41,7 +41,7 @@
41
41
<refsect1 role="examples">
42
42
&reftitle.examples;
43
43
<example>
44
-
<title><varname>$mysqli->error</varname> example</title>
44
+
<title><varname>$mysqli-&gt;error</varname> example</title>
45
45
<para>&style.oop;</para>
46
46
<programlisting role="php">
47
47
<![CDATA[
...
...
@@ -55,7 +55,7 @@ if ($mysqli->connect_errno) {
55
55
}
56
56

57
57
if (!$mysqli->query("SET a=1")) {
58
-
printf("Errormessage: %s\n", $mysqli->error);
58
+
printf("Error message: %s\n", $mysqli->error);
59
59
}
60
60

61
61
/* close connection */
...
...
@@ -76,7 +76,7 @@ if (mysqli_connect_errno()) {
76
76
}
77
77

78
78
if (!mysqli_query($link, "SET a=1")) {
79
-
printf("Errormessage: %s\n", mysqli_error($link));
79
+
printf("Error message: %s\n", mysqli_error($link));
80
80
}
81
81

82
82
/* close connection */
...
...
@@ -87,7 +87,7 @@ mysqli_close($link);
87
87
&examples.outputs;
88
88
<screen>
89
89
<![CDATA[
90
-
Errormessage: Unknown system variable 'a'
90
+
Error message: Unknown system variable 'a'
91
91
]]>
92
92
</screen>
93
93
</example>
...
...
@@ -106,7 +106,6 @@ Errormessage: Unknown system variable 'a'
106
106
</refsect1>
107
107

108
108
</refentry>
109
-

110
109
<!-- Keep this comment at the end of the file
111
110
Local variables:
112
111
mode: sgml
113
112