2010-03-28 22:10:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 09:13:17 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<refentry xml:id="function.odbc-data-source" xmlns="http://docbook.org/ns/docbook">
|
2006-11-27 10:40:45 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>odbc_data_source</refname>
|
|
|
|
<refpurpose>Returns information about a current connection</refpurpose>
|
|
|
|
</refnamediv>
|
2007-12-30 13:40:52 +00:00
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2006-11-27 10:40:45 +00:00
|
|
|
<methodsynopsis>
|
|
|
|
<type>array</type><methodname>odbc_data_source</methodname>
|
|
|
|
<methodparam><type>resource</type><parameter>connection_id</parameter></methodparam>
|
|
|
|
<methodparam><type>int</type><parameter>fetch_type</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
2007-12-30 13:40:52 +00:00
|
|
|
This function will return the list of available DNS (after calling it
|
|
|
|
several times).
|
2006-11-27 10:40:45 +00:00
|
|
|
</para>
|
2007-12-30 13:40:52 +00:00
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
2006-11-27 10:40:45 +00:00
|
|
|
<para>
|
2007-12-30 13:40:52 +00:00
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>connection_id</parameter></term>
|
|
|
|
<listitem>
|
2008-05-20 15:41:39 +00:00
|
|
|
&odbc.connection.id;
|
2007-12-30 13:40:52 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>fetch_type</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The <parameter>fetch_type</parameter> can be one of two constant types:
|
|
|
|
<constant>SQL_FETCH_FIRST</constant>, <constant>SQL_FETCH_NEXT</constant>.
|
|
|
|
Use <constant>SQL_FETCH_FIRST</constant> the first time this function is
|
|
|
|
called, thereafter use the <constant>SQL_FETCH_NEXT</constant>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
|
|
|
Returns &false; on error, and an array upon success.
|
2006-11-27 10:40:45 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
2002-08-12 16:11:28 +00:00
|
|
|
|
|
|
|
<!-- 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
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2002-08-12 16:11:28 +00:00
|
|
|
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
|
|
|
|
-->
|