hirokawa Sat Apr 20 20:45:19 2002 EDT
Added files:
/phpdoc/ja/reference/pgsql/functions pg-update.xml
Modified files:
/phpdoc/ja/reference/pgsql/functions pg-query.xml
Log:
added pg-update.xml in japanese manual.
Index: phpdoc/ja/reference/pgsql/functions/pg-query.xml
diff -u phpdoc/ja/reference/pgsql/functions/pg-query.xml:1.1
phpdoc/ja/reference/pgsql/functions/pg-query.xml:1.2
--- phpdoc/ja/reference/pgsql/functions/pg-query.xml:1.1 Sat Apr 20 19:56:33
2002
+++ phpdoc/ja/reference/pgsql/functions/pg-query.xml Sat Apr 20 20:45:19 2002
@@ -1,5 +1,5 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 1.2 $ -->
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 -->
<refentry id="function.pg-query">
<refnamediv>
Index: phpdoc/ja/reference/pgsql/functions/pg-update.xml
+++ phpdoc/ja/reference/pgsql/functions/pg-update.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.1 $ -->
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 -->
<refentry id='function.pg-update'>
<refnamediv>
<refname>pg_update</refname>
<refpurpose>
テーブルを更新する
</refpurpose>
</refnamediv>
<refsect1>
<title>説明</title>
<methodsynopsis>
<type>long</type><methodname>pg_update</methodname>
<methodparam><type>resource</type><parameter>connection</parameter></methodparam>
<methodparam><type>string</type><parameter>table_name</parameter></methodparam>
<methodparam><type>array</type><parameter>condition</parameter></methodparam>
<methodparam><type>array</type><parameter>data</parameter></methodparam>
<methodparam
choice="opt"><type>bool</type><parameter>convert</parameter></methodparam>
</methodsynopsis>
<para>
<function>pg_update</function>は、<literal>data</literal>に関して
<literal>condition</literal>にマッチするレコードを更新します。
<literal>convert</literal>が指定されていないか&true;の場合、
<function>pg_convert</function>が<literal>assoc_array</literal>に適
用されます。
</para>
<example>
<title>pg_update</title>
<programlisting role="php">
<![CDATA[
<?php
$db = pg_connect ('dbname=foo');
$data = array('field1'=>'AA', 'field2'=>'BB');
// $_POSTは自動的に変換されるため、これは大丈夫です。
$res = pg_update($db, 'post_log', $_POST, $data);
if ($res) {
echo "データが更新されました: $res\n";
}
else {
echo "ユーザが誤った入力を送信しました。\n";
}
?>
]]>
</programlisting>
</example>
<note>
<para>
この関数は実験的な関数です。
</para>
</note>
<para>
<function>pg_convert</function>も参照下さい。
</para>
</refsect1>
</refentry>
<!-- 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
sgml-default-dtd-file:"../../../../manual.ced"
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
-->