reference/ibm_db2/functions/db2-exec.xml
28529d3539b850e870e3aa97570f4db0e53daa03
...
...
@@ -11,10 +11,10 @@
11
11
<refsect1 role="description">
12
12
&reftitle.description;
13
13
<methodsynopsis>
14
-
<type>resource</type><methodname>db2_exec</methodname>
14
+
<type class="union"><type>resource</type><type>false</type></type><methodname>db2_exec</methodname>
15
15
<methodparam><type>resource</type><parameter>connection</parameter></methodparam>
16
16
<methodparam><type>string</type><parameter>statement</parameter></methodparam>
17
-
<methodparam choice="opt"><type>array</type><parameter>options</parameter></methodparam>
17
+
<methodparam choice="opt"><type>array</type><parameter>options</parameter><initializer>[]</initializer></methodparam>
18
18
</methodsynopsis>
19
19

20
20

...
...
@@ -148,7 +148,7 @@ $sql = "SELECT name FROM animals
148
148
WHERE weight < 10.0
149
149
ORDER BY name";
150
150
if ($conn) {
151
-
require_once('prepare.inc');
151
+
require_once 'prepare.inc';
152
152
$stmt = db2_exec($conn, $sql, array('cursor' => DB2_SCROLLABLE));
153
153
while ($row = db2_fetch_array($stmt)) {
154
154
print "$row[0]\n";
...
...
@@ -356,7 +356,6 @@ db2_close($conn);
356
356

357
357

358
358
</refentry>
359
-

360
359
<!-- Keep this comment at the end of the file
361
360
Local variables:
362
361
mode: sgml
363
362