reference/uodbc/functions/odbc-connect.xml
902c2b77f827e8d0ecccf4f62fb90065d2f6ef79
...
...
@@ -9,11 +9,11 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>resource</type><methodname>odbc_connect</methodname>
12
+
<type class="union"><type>resource</type><type>false</type></type><methodname>odbc_connect</methodname>
13
13
<methodparam><type>string</type><parameter>dsn</parameter></methodparam>
14
14
<methodparam><type>string</type><parameter>user</parameter></methodparam>
15
15
<methodparam><type>string</type><parameter>password</parameter></methodparam>
16
-
<methodparam choice="opt"><type>int</type><parameter>cursor_type</parameter></methodparam>
16
+
<methodparam choice="opt"><type>int</type><parameter>cursor_option</parameter><initializer><constant>SQL_CUR_USE_DRIVER</constant></initializer></methodparam>
17
17
</methodsynopsis>
18
18
<simpara>
19
19
The connection id returned by this functions is needed by other
...
...
@@ -61,7 +61,7 @@
61
61
</listitem>
62
62
</varlistentry>
63
63
<varlistentry>
64
-
<term><parameter>cursor_type</parameter></term>
64
+
<term><parameter>cursor_option</parameter></term>
65
65
<listitem>
66
66
<para>
67
67
This sets the type of cursor to be used
...
...
@@ -99,7 +99,7 @@
99
99
<refsect1 role="returnvalues">
100
100
&reftitle.returnvalues;
101
101
<para>
102
-
Returns an ODBC connection or (&false;) on error.
102
+
Returns an ODBC connection, &return.falseforfailure;.
103
103
</para>
104
104
</refsect1>
105
105

...
...
@@ -138,7 +138,6 @@ $connection = odbc_connect("Driver={Microsoft Excel Driver (*.xls)};DriverId=790
138
138
</refsect1>
139
139

140
140
</refentry>
141
-

142
141
<!-- Keep this comment at the end of the file
143
142
Local variables:
144
143
mode: sgml
145
144