I am trying to connect to a postgreSQL db with the following code.
<?php
    error_reporting(-1);
    $dbh = new PDO('pgsql:dbname=southpark;host=localhost', 'jaseem' , 'DBPassword');
    var_dump( $dbh );
?>
It quits with an error message object(PDO)#1 (0) { }
How do i solve this issue ? Where did i go wrong ? Apache ? postgreSQL ? or php ?
object(PDO)#1 (0) { }is NOT an error message, it's effectively a visual representation of a PDO object by var_dump.