mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-04-28 11:13:14 +02:00
ae904013d7
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@164386 c90b9560-bf6c-de11-be94-00142212c4b1
78 lines
1.9 KiB
XML
78 lines
1.9 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.6 $ -->
|
|
<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready -->
|
|
<refentry id="function.pg-fetch-all">
|
|
<refnamediv>
|
|
<refname>pg_fetch_all</refname>
|
|
<refpurpose>Lit toutes les lignes d'un résultat</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>array</type><methodname>pg_fetch_all</methodname>
|
|
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>pg_fetch_all</function> retourne un tableau qui contient
|
|
toutes les lignes du résultat <parameter>result</parameter>. Elle
|
|
retourne &false; s'il n'y a plus de lignes disponibles.
|
|
</para>
|
|
&database.fetch-null;
|
|
<para>
|
|
<example>
|
|
<title>Exemple avec <function>pg_fetch_all</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$conn = pg_pconnect ("dbname=publisher");
|
|
if (!$conn) {
|
|
echo "Une erreur est survenue.\n";
|
|
exit;
|
|
}
|
|
|
|
$result = pg_query ($conn, "SELECT * FROM authors");
|
|
if (!$result) {
|
|
echo "Une erreur est survenue.\n";
|
|
exit;
|
|
}
|
|
|
|
$arr = pg_fetch_all ($result);
|
|
|
|
var_dump($arr);
|
|
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<para>
|
|
Voir aussi
|
|
<function>pg_fetch_row</function>,
|
|
<function>pg_fetch_array</function>,
|
|
<function>pg_fetch_object</function> et
|
|
<function>pg_fetch_result</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
|
|
-->
|