error correction.

replaced
pg_pconnect("dbname=$psqldb user=$psqluser password='$psqlpass'
host=$psqlhost")
by
pg_pconnect("dbname=" .$psqldb. " user=" .$psqluser. " password="
.$psqlpass. " host=" .$psqlhost. "")