Thorsten Haude <postgresql@thorstenhau.de> writes:
> create user inventuser with encrypted password 'secret';
> $connectString = "host=localhost dbname=inventory user=inventuser password=" . md5("secret");
> $dbh = pg_connect($connectString);
Not sure, but I think you should just say password=secret in the connect
parameters. The user isn't supposed to have to do the md5 translation
for himself.
regards, tom lane