note 97699 added to ref.pdo-pgsql.connection
| From: | tmairs at aasland dot com | Date: | Tue, 04 May 2010 00:28:04 +0000 |
| Subject: | note 97699 added to ref.pdo-pgsql.connection | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-168899@lists.php.net to get a copy of this message | ||
The DSN syntax shown here did not work for me, but this did:
$dbh = new PDO("pgsql:dbname=$dbname;host=$host", $username, $password );
As opposed to
$dbh = new PDO('pgsql:dbname=$dbname;
host=$host;
username=$username;
password=$password');
Which makes sense and is more PGSQL standard.
----
Server IP: 69.147.83.197
Probable Submitter: 70.72.128.214
----
Manual Page -- http://www.php.net/manual/en/ref.pdo-pgsql.connection.php
Edit -- https://master.php.net/note/edit/97699
Del: integrated -- https://master.php.net/note/delete/97699/integrated
Del: useless -- https://master.php.net/note/delete/97699/useless
Del: bad code -- https://master.php.net/note/delete/97699/bad+code
Del: spam -- https://master.php.net/note/delete/97699/spam
Del: non-english -- https://master.php.net/note/delete/97699/non-english
Del: in docs -- https://master.php.net/note/delete/97699/in+docs
Del: other reasons-- https://master.php.net/note/delete/97699
Reject -- https://master.php.net/note/reject/97699
Search -- https://master.php.net/manage/user-notes.php