I've got this connection script for my database:
<?php
$password = md5("xx");
$user = "user";
$host = "localhost";
$database = "base";
$link = pg_connect("dbname=$database host=$host user=$user
password=$password");

?>
In pg_hba.conf in postgres i've set md5 authorization for local connection.
Unfortunetly postgres server gives mi error: password authentication failed.
What's wrong with the script ?

Miszak