cvs: phpdoc-it /reference/pgsql/functions pg-insert.xml pg-lo-export.xml
| From: | Marco Cucinato | Date: | Thu, 22 Aug 2002 12:22:42 +0000 |
| Subject: | cvs: phpdoc-it /reference/pgsql/functions pg-insert.xml pg-lo-export.xml | ||
| Groups: | php.doc.it | ||
| Request: | Send a blank email to doc-it+get-72@lists.php.net to get a copy of this message | ||
cucinato Thu Aug 22 08:22:42 2002 EDT
Added files:
/phpdoc-it/reference/pgsql/functions pg-insert.xml pg-lo-export.xml
Log:
Initial translation
Index: phpdoc-it/reference/pgsql/functions/pg-insert.xml
+++ phpdoc-it/reference/pgsql/functions/pg-insert.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready -->
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 -->
<!-- CREDITS: fabio,cortesi,denny -->
<refentry id='function.pg-insert'>
<refnamediv>
<refname>pg_insert</refname>
<refpurpose>
Inserisce un array in una tabella.
</refpurpose>
</refnamediv>
<refsect1>
<title>Descrizione</title>
<methodsynopsis>
<type>bool</type><methodname>pg_insert</methodname>
<methodparam><type>resource</type><parameter>connessione</parameter></methodparam>
<methodparam><type>string</type><parameter>nome_tabella</parameter></methodparam>
<methodparam><type>array</type><parameter>array_assoc</parameter></methodparam>
<methodparam
choice="opt"><type>int</type><parameter>opzioni</parameter></methodparam>
</methodsynopsis>
<para>
<function>pg_insert</function> inserisce
<literal>array_assoc</literal> composto da
<literal>campo=>valore</literal> nella tabella specificata da
<literal>nome_tabella</literal>. Se <literal>opzioni</literal> è
specificato, <function>pg_convert</function> è eseguita
su <literal>array_assoc</literal> con le opzioni date.
</para>
<example>
<title>pg_insert</title>
<programlisting role="php">
<![CDATA[
<?php
$db = pg_connect ('dbname=foo');
// La riga seguente è sicura, dato che $_POST è convertito automaticamente
$res = pg_insert($db, 'post_log', $_POST);
if ($res) {
echo "dati POST inseriti con successo\n";
}
else {
echo "L'utente deve aver invitao dati sbagliati\n";
}
?>
]]>
</programlisting>
</example>
<note>
<para>
Questa funzione è sperimentale.
</para>
</note>
<para>
Vedere anche <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
-->
Index: phpdoc-it/reference/pgsql/functions/pg-lo-export.xml
+++ phpdoc-it/reference/pgsql/functions/pg-lo-export.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready -->
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.6 -->
<!-- CREDITS: fabio, cortesi,denny -->
<refentry id="function.pg-lo-export">
<refnamediv>
<refname>pg_lo_export</refname>
<refpurpose>Esporta un large object salvandolo su un file</refpurpose>
</refnamediv>
<refsect1>
<title>Descrizione</title>
<methodsynopsis>
<type>bool</type><methodname>pg_lo_export</methodname>
<methodparam><type>int</type><parameter>oid</parameter></methodparam>
<methodparam><type>string</type><parameter>percorso</parameter></methodparam>
<methodparam
choice="opt"><type>resource</type><parameter>connessione</parameter></methodparam>
</methodsynopsis>
<para>
L'argomento <parameter>oid</parameter> specifica l'oid del
large object da salvare e l'argomento <parameter>percorso</parameter>
specifica il percorso del file. Restituisce &false; in
caso di errore, &true; altrimenti.
</para>
<para>
Per utilizzare l'interfaccia large object (lo), occorre
includere il comando in un blocco di transazione.
</para>
<note>
<para>
Questa funzione si chiamava <literal>pg_loexport()</literal>.
</para>
</note>
<para>
Vedere anche <function>pg_lo_import</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
-->