mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fixed description. connection string is recommended parameter for pg_connect/
pg_pconnect. To make a new connection, using a slightly different connection string is enough with connection string. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@68543 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
ff2021db61
commit
22f3f5b3a1
1 changed files with 4 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.66 $ -->
|
||||
<!-- $Revision: 1.67 $ -->
|
||||
<reference id="ref.pgsql">
|
||||
<title>PostgreSQL functions</title>
|
||||
<titleabbrev>PostgreSQL</titleabbrev>
|
||||
|
@ -336,7 +336,7 @@ $dbconn4 = pg_connect ($conn_string);
|
|||
new connection will be established, but instead, the connection
|
||||
resource of the already opened connection will be returned. You
|
||||
can have multiple connections to the same database if you use
|
||||
different connection parameters. (i.e. Use different username)
|
||||
different connection string.
|
||||
</para>
|
||||
<para>
|
||||
Syntax supports multiple parameters:
|
||||
|
@ -1530,7 +1530,7 @@ for ($i=0; $i < $num; $i++) {
|
|||
<parameter>password</parameter>.
|
||||
</para>
|
||||
<example>
|
||||
<title>Using pg_connect</title>
|
||||
<title>Using pg_pconnect</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -1552,8 +1552,7 @@ $dbconn4 = pg_connect ($conn_string);
|
|||
the same arguments, no new connection will be established, but
|
||||
instead, the connection resource of the already opened connection
|
||||
will be returned. You can have multiple connections to the same
|
||||
database if you use different connection parameters. (i.e. Use
|
||||
different username)
|
||||
database if you use different connection string.
|
||||
</para>
|
||||
<para>
|
||||
Multiple parameters syntax for <function>pg_pconnect</function>
|
||||
|
|
Loading…
Reference in a new issue