note 97699 deleted from ref.pdo-pgsql.connection by salathe

From: Date: Mon, 21 Sep 2020 14:31:18 +0000
Subject: note 97699 deleted from ref.pdo-pgsql.connection by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-215183@lists.php.net to get a copy of this message
Note Submitter: tmairs at aasland dot com ---- The DSN syntax shown here did not work for me, but this did: <?php $dbh = new PDO("pgsql:dbname=$dbname;host=$host", $username, $password ); ?> As opposed to <?php $dbh = new PDO('pgsql:dbname=$dbname; host=$host; username=$username; password=$password'); ?> Which makes sense and is more PGSQL standard.

« previous php.notes (#215183) next »