Hi,
I was trying to connect my PHP page to PostgreSQL, but it's not working. The code which I have tried is given below:
<?php
$connection = pg_connect("host=localhost dbname=mydb user=postgres password=pgsql");
if (!$connection)
{
echo "Couldn't make a connection!";
}
?>
During the time of installation, the system asked me for a password and I had gives as pgsql
. My database name is "mydb". Somebody please help me.
Thanks and regards.
tismon