Failure to connect to database using php. - Mailing list pgsql-novice

From Vivek Sonny Abraham
Subject Failure to connect to database using php.
Date
Msg-id 117cc7bf05062803363df904f0@mail.gmail.com
Whole thread Raw
Responses Re: Failure to connect to database using php.
List pgsql-novice
Hi,

I am using the following code to connect to my database.

<?

$db = pg_connect("dbname=friends");
echo pg_dbname();

?>

But there is nothing  displayed on the screen when I try it on my browser.

I use apache 4.3.9, redhat and postgresql 7.4.6. What am I doing wrong?

pgsql-novice by date:

Previous
From: Volkan YAZICI
Date:
Subject: Re: Transactions
Next
From: Volkan YAZICI
Date:
Subject: Re: Failure to connect to database using php.