php and postgresql

I think I have installed postgresql and its pho module
as 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 "Ú‘±‚Å‚«‚Ü‚¹‚ñEEE";
}
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.

 

 

 

 

Top