Failure to connect to database using php.

From: Vivek Sonny Abraham <vivek(dot)sonny(dot)abraham(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Failure to connect to database using php.
Date: 2005-06-28 10:36:21
Message-ID: 117cc7bf05062803363df904f0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Volkan YAZICI 2005-06-28 11:04:06 Re: Failure to connect to database using php.
Previous Message Volkan YAZICI 2005-06-28 06:46:30 Re: Transactions