Hi,
On 6/28/05, Vivek Sonny Abraham <vivek(dot)sonny(dot)abraham(at)gmail(dot)com> wrote:
> <?
>
> $db = pg_connect("dbname=friends");
Are you sure above line finishes succesfully?
Please try something with more verbosity like this:
<?php
error_reporting(E_ALL);
$conn = pg_connect("...") or die("Database connection failed!");
...
?>
For more information about handling pg_connect() errors, you can take
a look at http://php.net/pg_connect and comments related to it.
Regards.