dams Wed Jul 16 11:05:35 2003 EDT
Modified files:
/phpdoc/en/reference/pgsql/functions pg-close.xml pg-delete.xml
pg-fetch-all.xml pg-insert.xml
pg-send-query.xml
Log:
some literals should be parameters
Index: phpdoc/en/reference/pgsql/functions/pg-close.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-close.xml:1.4
phpdoc/en/reference/pgsql/functions/pg-close.xml:1.5
--- phpdoc/en/reference/pgsql/functions/pg-close.xml:1.4 Wed Jul 16 05:20:01
2003
+++ phpdoc/en/reference/pgsql/functions/pg-close.xml Wed Jul 16 11:05:34 2003
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 -->
<refentry id="function.pg-close">
<refnamediv>
<refname>pg_close</refname>
- <refpurpose>Close a PostgreSQL connection</refpurpose>
+ <refpurpose>Closes a PostgreSQL connection</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
Index: phpdoc/en/reference/pgsql/functions/pg-delete.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-delete.xml:1.7
phpdoc/en/reference/pgsql/functions/pg-delete.xml:1.8
--- phpdoc/en/reference/pgsql/functions/pg-delete.xml:1.7 Wed Jul 16 05:20:01
2003
+++ phpdoc/en/reference/pgsql/functions/pg-delete.xml Wed Jul 16 11:05:34 2003
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 -->
<refentry id='function.pg-delete'>
<refnamediv>
<refname>pg_delete</refname>
<refpurpose>
- Delete records.
+ Deletes records.
</refpurpose>
</refnamediv>
<refsect1>
@@ -26,7 +26,7 @@
</para>
<para>
<example>
- <title>pg_delete</title>
+ <title><function>pg_delete</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
Index: phpdoc/en/reference/pgsql/functions/pg-fetch-all.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-fetch-all.xml:1.3
phpdoc/en/reference/pgsql/functions/pg-fetch-all.xml:1.4
--- phpdoc/en/reference/pgsql/functions/pg-fetch-all.xml:1.3 Wed Jul 16 05:20:01
2003
+++ phpdoc/en/reference/pgsql/functions/pg-fetch-all.xml Wed Jul 16 11:05:34
2003
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 -->
<refentry id="function.pg-fetch-all">
<refnamediv>
<refname>pg_fetch_all</refname>
- <refpurpose>Fetch all rows from a result as an array</refpurpose>
+ <refpurpose>Fetches all rows from a result as an array</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
Index: phpdoc/en/reference/pgsql/functions/pg-insert.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-insert.xml:1.7
phpdoc/en/reference/pgsql/functions/pg-insert.xml:1.8
--- phpdoc/en/reference/pgsql/functions/pg-insert.xml:1.7 Wed Jul 16 05:20:01
2003
+++ phpdoc/en/reference/pgsql/functions/pg-insert.xml Wed Jul 16 11:05:34 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 -->
<refentry id='function.pg-insert'>
<refnamediv>
@@ -18,14 +18,15 @@
<methodparam
choice="opt"><type>int</type><parameter>options</parameter></methodparam>
</methodsynopsis>
<para>
- <function>pg_insert</function> inserts the values of
<literal>assoc_array</literal>
- into the table specified by <literal>table_name</literal>.
- <literal>table_name</literal> must at least have as many columns as
<literal>assoc_array</literal>
- has elements. The fieldnames as well as the fieldvalues in
<literal>table_name</literal>
- must match the indices and values of <literal>assoc_array</literal>.
+ <function>pg_insert</function> inserts the values of
<parameter>assoc_array</parameter>
+ into the table specified by <parameter>table_name</parameter>.
+ <parameter>table_name</parameter> must at least have as many columns as
+ <parameter>assoc_array</parameter> has elements. The fieldnames as
+ well as the fieldvalues in <parameter>table_name</parameter>
+ must match the indices and values of <parameter>assoc_array</parameter>.
&return.success;
- If options is specified, <function>pg_insert</function> is applied to
- <literal>assoc_array</literal> with specified option.
+ If <parameter>options</parameter> is specified, <function>pg_insert</function>
+ is applied to <parameter>assoc_array</parameter> with specified option.
</para>
<para>
<example>
Index: phpdoc/en/reference/pgsql/functions/pg-send-query.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-send-query.xml:1.5
phpdoc/en/reference/pgsql/functions/pg-send-query.xml:1.6
--- phpdoc/en/reference/pgsql/functions/pg-send-query.xml:1.5 Wed Jul 16 05:20:01
2003
+++ phpdoc/en/reference/pgsql/functions/pg-send-query.xml Wed Jul 16 11:05:34
2003
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 -->
<refentry id='function.pg-send-query'>
<refnamediv>
<refname>pg_send_query</refname>
<refpurpose>
- Send asynchronous query
+ Sends asynchronous query
</refpurpose>
</refnamediv>
<refsect1>
@@ -49,12 +49,12 @@
}
$res1 = pg_get_result($dbconn);
- echo "First call to pg_get_result : $res1\n";
+ echo "First call to pg_get_result(): $res1\n";
$rows1 = pg_num_rows($res1);
echo "$res1 has $rows1 records\n\n";
$res2 = pg_get_result($dbconn);
- echo "second call to pg_get_result : $res2\n";
+ echo "second call to pg_get_result(): $res2\n";
$rows2 = pg_num_rows($res2);
echo "$res2 has $rows2 records\n";
?>
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php