php and postgresql
I think I have installed postgresql and its pho moduleas www.joeswebhosting.net/php.php.
I created usernames using su - postgresql well.
However, I could not connect using pg_connect.
The error message is as follows:
------------------------------------------------
<html>
<head>
<title></title>
</head>
<body>
<?php
$con=pg_connect("","","","","psycho");
if($con == false){
echo "ڱūܹñEEE";
}
else{
echo "ڱūܵ½I";
}
?>
</body>
</html>
Warning: pg_connect() unable to connect to PostgreSQL server: FATAL 1: user "nobody" does not exist in /home/clinical/public_html/postgre.php on line 7
Do you have any idea what had happend?
Thank you very much. Joe.