yohgaki Wed Apr 10 21:11:12 2002 EDT
Modified files:
/phpdoc/en/functions pgsql.xml
Log:
Fix indent via. 'inident-region'
Index: phpdoc/en/functions/pgsql.xml
diff -u phpdoc/en/functions/pgsql.xml:1.85 phpdoc/en/functions/pgsql.xml:1.86
--- phpdoc/en/functions/pgsql.xml:1.85 Wed Apr 10 11:19:08 2002
+++ phpdoc/en/functions/pgsql.xml Wed Apr 10 21:11:12 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.85 $ -->
+<!-- $Revision: 1.86 $ -->
<reference id="ref.pgsql">
<title>PostgreSQL functions</title>
<titleabbrev>PostgreSQL</titleabbrev>
@@ -20,7 +20,7 @@
feature. PostgreSQL supports many character encoding including
multibyte character encoding. The current version and more
information about PostgreSQL is available at <ulink
- url="&url.pgsql;">&url.pgsql;</ulink>.
+ url="&url.pgsql;">&url.pgsql;</ulink>.
</para>
<para>
In order to enable PostgreSQL support,
@@ -60,7 +60,7 @@
<entry><function>pg_exec</function></entry>
<entry><function>pg_query</function></entry>
</row>
- <row>
+ <row>
<entry><function>pg_getlastoid</function></entry>
<entry><function>pg_last_oid</function></entry>
</row>
@@ -72,11 +72,11 @@
<entry><function>pg_numrows</function></entry>
<entry><function>pg_num_rows</function></entry>
</row>
- <row>
+ <row>
<entry><function>pg_numfields</function></entry>
<entry><function>pg_num_fields</function></entry>
</row>
- <row>
+ <row>
<entry><function>pg_fieldname</function></entry>
<entry><function>pg_field_name</function></entry>
</row>
@@ -100,11 +100,11 @@
<entry><function>pg_freeresult</function></entry>
<entry><function>pg_free_result</function></entry>
</row>
- <row>
+ <row>
<entry><function>pg_result</function></entry>
<entry><function>pg_fetch_result</function></entry>
</row>
- <row>
+ <row>
<entry><function>pg_loreadall</function></entry>
<entry><function>pg_lo_read_all</function></entry>
</row>
@@ -136,7 +136,7 @@
<entry><function>pg_loimport</function></entry>
<entry><function>pg_lo_import</function></entry>
</row>
- <row>
+ <row>
<entry><function>pg_loexport</function></entry>
<entry><function>pg_lo_export</function></entry>
</row>
@@ -181,29 +181,29 @@
</thead>
<tbody>
<row>
- <entry>postmaster &</entry>
- <entry>pg_connect("dbname=MyDbName");</entry>
- <entry>OK</entry>
+ <entry>postmaster &</entry>
+ <entry>pg_connect("dbname=MyDbName");</entry>
+ <entry>OK</entry>
</row>
<row>
- <entry>postmaster -i &</entry>
- <entry>pg_connect("dbname=MyDbName");</entry>
- <entry>OK</entry>
+ <entry>postmaster -i &</entry>
+ <entry>pg_connect("dbname=MyDbName");</entry>
+ <entry>OK</entry>
</row>
<row>
- <entry>postmaster &</entry>
- <entry>pg_connect("host=localhost dbname=MyDbName");</entry>
- <entry>
- Unable to connect to PostgreSQL server: connectDB() failed:
- Is the postmaster running and accepting TCP/IP (with -i)
- connection at 'localhost' on port '5432'? in
- /path/to/file.php on line 20.
- </entry>
+ <entry>postmaster &</entry>
+ <entry>pg_connect("host=localhost dbname=MyDbName");</entry>
+ <entry>
+ Unable to connect to PostgreSQL server: connectDB() failed:
+ Is the postmaster running and accepting TCP/IP (with -i)
+ connection at 'localhost' on port '5432'? in
+ /path/to/file.php on line 20.
+ </entry>
</row>
<row>
- <entry>postmaster -i &</entry>
- <entry>pg_connect("host=localhost dbname=MyDbName");</entry>
- <entry>OK</entry>
+ <entry>postmaster -i &</entry>
+ <entry>pg_connect("host=localhost dbname=MyDbName");</entry>
+ <entry>OK</entry>
</row>
</tbody>
</tgroup>
@@ -212,8 +212,8 @@
<para>
A connection to PostgreSQL server can be established with the
following value pairs set in the command string: <command>$conn =
- pg_connect("host=myHost port=myPort tty=myTTY options=myOptions
- dbname=myDB user=myUser password=myPassword ");
+ pg_connect("host=myHost port=myPort tty=myTTY options=myOptions
+ dbname=myDB user=myUser password=myPassword ");
</command>
</para>
<para>
@@ -298,10 +298,10 @@
</refnamediv>
<refsect1>
<title>Description</title>
- <methodsynopsis>
- <type>int</type><methodname>pg_affected_rows</methodname>
- <methodparam><type>resource</type><parameter>result</parameter></methodparam>
- </methodsynopsis>
+ <methodsynopsis>
+ <type>int</type><methodname>pg_affected_rows</methodname>
+ <methodparam><type>resource</type><parameter>result</parameter></methodparam>
+ </methodsynopsis>
<para>
<function>pg_affected_rows</function> returns the number of tuples
(instances/records/rows) affected by INSERT, UPDATE, and DELETE
@@ -312,9 +312,9 @@
<programlisting role="php">
<![CDATA[
<?php
-$result = pg_query ($conn, "INSERT INTO publisher VALUES ('Author')");
-$cmdtuples = pg_affected_rows ($result);
-echo $cmdtuples . " tuples are affected.";
+ $result = pg_query ($conn, "INSERT INTO publisher VALUES ('Author')");
+ $cmdtuples = pg_affected_rows ($result);
+ echo $cmdtuples . " tuples are affected.";
?>
]]>
</programlisting>
@@ -341,10 +341,10 @@
</refnamediv>
<refsect1>
<title>Description</title>
- <methodsynopsis>
- <type>resource</type><methodname>pg_connect</methodname>
-
<methodparam><type>string</type><parameter>connection_string</parameter></methodparam>
- </methodsynopsis>
+ <methodsynopsis>
+ <type>resource</type><methodname>pg_connect</methodname>
+
+<methodparam><type>string</type><parameter>connection_string</parameter></methodparam>
+ </methodsynopsis>
<para>
<function>pg_connect</function> returns a connection resource
that is needed by other PostgreSQL functions.
@@ -357,8 +357,8 @@
not be made. <parameter>connection_string</parameter> should be
a quoted string.
<example>
- <title>Using pg_connect</title>
- <programlisting role="php">
+ <title>Using pg_connect</title>
+ <programlisting role="php">
<![CDATA[
<?php
$dbconn = pg_connect ("dbname=mary");
@@ -372,7 +372,7 @@
//connect to a database named "test" on the host "sheep" with a username and password
?>
]]>
- </programlisting>
+ </programlisting>
</example>
The arguments available for
<parameter>connection_string</parameter> includes
@@ -412,10 +412,10 @@
</refnamediv>
<refsect1>
<title>Description</title>
- <methodsynopsis>
- <type>int</type><methodname>pg_pconnect</methodname>
-
<methodparam><type>string</type><parameter>connection_string</parameter></methodparam>
- </methodsynopsis>
+ <methodsynopsis>
+ <type>int</type><methodname>pg_pconnect</methodname>
+
+<methodparam><type>string</type><parameter>connection_string</parameter></methodparam>
+ </methodsynopsis>
<para>
<function>pg_pconnect</function> opens a connection to a
PostgreSQL database. It returns a connection resource that is
@@ -427,13 +427,13 @@
</para>
<para>
To enable persistent connection, the <link
- linkend="ini.pgsql.allow-persistent">pgsql.allow_persistent</link>
+ linkend="ini.pgsql.allow-persistent">pgsql.allow_persistent</link>
&php.ini; directive must be set to "On" (which is the default).
The maximum number of persistent connection can be defined with the <link
- linkend="ini.pgsql.max-persistent">pgsql.max_persistent</link>
+ linkend="ini.pgsql.max-persistent">pgsql.max_persistent</link>
&php.ini; directive (defaults to -1 for no limit). The total number
of connections can be set with the <link
- linkend="ini.pgsql.max-links">pgsql.max_links</link>
+ linkend="ini.pgsql.max-links">pgsql.max_links</link>
&php.ini; directive.
</para>
<para>
@@ -457,10 +457,10 @@
</refnamediv>
<refsect1>
<title>Description</title>
- <methodsynopsis>
- <type>bool</type><methodname>pg_connection_busy</methodname>
-
<methodparam><type>resource</type><parameter>connection</parameter></methodparam>
- </methodsynopsis>
+ <methodsynopsis>
+ <type>bool</type><methodname>pg_connection_busy</methodname>
+ <methodparam><type>resource</type><parameter>connection</parameter></methodparam>
+ </methodsynopsis>
<para>
<function>pg_connection_busy</function> returns &true; if the
connection is busy. If it's is busy, a previous query is still executing.
@@ -484,10 +484,10 @@
</refnamediv>
<refsect1>
<title>Description</title>
- <methodsynopsis>
- <type>bool</type><methodname>pg_connection_reset</methodname>
-
<methodparam><type>resource</type><parameter>connection</parameter></methodparam>
- </methodsynopsis>
+ <methodsynopsis>
+ <type>bool</type><methodname>pg_connection_reset</methodname>
+ <methodparam><type>resource</type><parameter>connection</parameter></methodparam>
+ </methodsynopsis>
<para>
<function>pg_connection_reset</function> resets the connection.
It is useful for error recovery. &return.success;
@@ -708,7 +708,7 @@
</methodsynopsis>
<para>
<function>pg_last_error</function> returns the last error
- message for given <parameter>connection</parameter>. Errormessages
+ message for given <parameter>connection</parameter>. Error messages
may be overwritten by calls to other PostgreSQL functions, so make
sure you call <function>pg_last_error</function> before any other
PostgreSQL functions.
@@ -934,7 +934,7 @@
<example>
<title>PostgreSQL fetch array</title>
<programlisting role="php">
- <![CDATA[
+<![CDATA[
<?php
$conn = pg_pconnect ("dbname=publisher");
if (!$conn) {
@@ -2487,7 +2487,7 @@
<example>
<title>pg_insert</title>
<programlisting role="php">
- <![CDATA[
+<![CDATA[
<?php
$db = pg_connect ('dbname=foo');
// This is safe, since $_POST is converted autotmatically
@@ -2544,7 +2544,7 @@
<example>
<title>pg_select</title>
<programlisting role="php">
- <![CDATA[
+<![CDATA[
<?php
$db = pg_connect ('dbname=foo');
// This is safe, since $_POST is converted autotmatically
@@ -2599,7 +2599,7 @@
<example>
<title>pg_delete</title>
<programlisting role="php">
- <![CDATA[
+<![CDATA[
<?php
$db = pg_connect ('dbname=foo');
// This is safe, since $_POST is converted autotmatically
@@ -2654,7 +2654,7 @@
<example>
<title>pg_update</title>
<programlisting role="php">
- <![CDATA[
+<![CDATA[
<?php
$db = pg_connect ('dbname=foo');
$data = array('field1'=>'AA', 'field2'=>'BB');