I can't establish a connection to postgres from a browser. In my php script I have the following syntax...
//Connect to the database
$connection=pg_connect("IP#","port","database","username","password");
if (!$connection)
{
echo "Sorry, could not establish a connection";
exit;
}
It's not working and here is my error message...
Warning: pg_connect() unable to connect to PostgreSQL server: fe_sendauth: no password supplied in /usr/local/apache/htdocs/postgre/php/add_new_client.php on line 15
Sorry, could not establish a connection
Any ideas?
Thanks,
Andy