cvs: phpdoc-fr /reference/pgsql/functions pg-connection-status.xml

From: Date: Thu, 09 Oct 2003 14:46:17 +0000
Subject: cvs: phpdoc-fr /reference/pgsql/functions pg-connection-status.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-836@lists.php.net to get a copy of this message
didou Thu Oct 9 10:46:17 2003 EDT Modified files: /phpdoc-fr/reference/pgsql/functions pg-connection-status.xml Log: sync with en Index: phpdoc-fr/reference/pgsql/functions/pg-connection-status.xml diff -u phpdoc-fr/reference/pgsql/functions/pg-connection-status.xml:1.2 phpdoc-fr/reference/pgsql/functions/pg-connection-status.xml:1.3 --- phpdoc-fr/reference/pgsql/functions/pg-connection-status.xml:1.2 Wed Jul 16 11:18:08 2003 +++ phpdoc-fr/reference/pgsql/functions/pg-connection-status.xml Thu Oct 9 10:46:17 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --> <refentry id="function.pg-connection-status"> <refnamediv> @@ -17,6 +17,7 @@ connexion <parameter>connection</parameter>. Les valeurs possibles sont <constant>PGSQL_CONNECTION_OK</constant> (connexion correcte) et <constant>PGSQL_CONNECTION_BAD</constant> (connexion abandonn&eacute;e). + La valeur de retour enti&egrave;re 0 indique une connexion valide. </para> <para> <example> @@ -26,7 +27,11 @@ <?php $dbconn = pg_connect("dbname=publisher") or die("Impossible de se connecter"); $stat = pg_connection_status($dbconn); - echo 'Etat de la connexion : '.$stat; + if ($stat === 0) { + echo 'Connexion ok'; + } else { + echo 'Connexion ko'; + } ?> ]]> </programlisting>

« previous php.doc.fr (#836) next »