some literals should be parameters

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@135218 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Damien Seguy 2003-07-16 15:05:34 +00:00
parent 125efa2ce5
commit f20cf6d294
5 changed files with 20 additions and 19 deletions

View file

@ -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>

View file

@ -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

View file

@ -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>

View file

@ -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>

View file

@ -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";
?>