note 117915 deleted from ref.pdo-pgsql.connection by salathe
| From: | salathe@php.net | Date: | Mon, 21 Sep 2020 14:31:22 +0000 |
| Subject: | note 117915 deleted from ref.pdo-pgsql.connection by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215184@lists.php.net to get a copy of this message | ||
Note Submitter: fandi
----
We can also alternatively put the username and password in the second and third argument of
PDO::__construct()
<?php
$dbh = new PDO("pgsql:dbname=$dbname;host=$host", $dbuser, $dbpass);
?>