Did some rereading.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@45170 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Damien Seguy 2001-04-12 06:39:09 +00:00
parent 59b4d1cac6
commit 379b687b15

View file

@ -118,14 +118,14 @@ dbx_close($link);
</para>
<para>
The pgsql support is still experimental, and you should compile
the actual pgsql module yourself after you modify one of the
the actual pgsql module yourself after modifying one of the
source files, otherwise you will get PostgreSQL warnings for
every query.
</para>
<para>
The dbx_link_object has three members, a 'handle', a 'module' and
a 'database'. The 'database' member is the name of the database
that is selected. The 'module' member is for internal use by dbx
a 'database'. The 'database' member is the name of the currently
selected database. The 'module' member is for internal use by dbx
only, and is actually the module number mentioned above. The
'handle' member is a valid handle for the connected database, and
as such can be used in module-specific functions (if required),
@ -144,7 +144,7 @@ mysql_close ($link->handle); // dbx_close($link) would be better here
<para>
Host, database, username and password parameters are expected,
but not always used, depending on the connect-functions for the
module that is abstracted.
abstracted module.
</para>
<para>
<example>
@ -241,7 +241,7 @@ dbx_close ($link);
Returns a dbx_result_object or 1 on success (a result object is
only returned for sql-statements that return results) or 0 on
failure. The flags parameter is used to control the amount of
information that is returned. It can be any combination of the
information that is returned. It may be any combination of the
constants DBX_RESULT_INFO, DBX_RESULT_INDEX, DBX_RESULT_ASSOC,
OR-ed together. DBX_RESULT_INFO provides info about columns, such
as field names and field types. DBX_RESULT_INDEX returns the
@ -255,10 +255,12 @@ dbx_close ($link);
effectively only the combinations DBX_RESULT_INDEX,
DBX_RESULT_INDEX | DBX_RESULT_INFO and DBX_RESULT_INDEX |
DBX_RESULT_INFO | DBX_RESULT_ASSOC are possible. This last
combination is the default if the flags parameter is not
specified. Associated results are actual references to the
indexed data, so if you modify data[0][0],
data[0]['fieldnameforfirstcolumn'] is modified as well.
combination is the default if the <parameter>flags</parameter>
parameter isn't specified. Associated results are actual
references to the indexed data, so if you modify
<literal>data[0][0]</literal>, then
<literal>data[0]['fieldnameforfirstcolumn']</literal> is
modified as well.
</para>
<para>
A dbx_result_object has five members (possibly four depending on
@ -364,7 +366,8 @@ dbx_close($link);
<refnamediv>
<refname>dbx_sort</refname>
<refpurpose>
Sort a result from a dbx_query by a custom sort function</refpurpose>
Sort a result from a dbx_query by a custom sort function
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -378,7 +381,7 @@ dbx_close($link);
</funcprototype>
</funcsynopsis>
<para>
Returns: <literal>TRUE</literal> on success,
Returns <literal>TRUE</literal> on success,
<literal>FALSE</literal> on error.
</para>
<example>