Hi
i am trying to connect postgres database using php.my database name is DB username=GPME and password=secret .I tried the pg_connect() using host=localhost parameter also.The following error occurs.
Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL: Database "DB,user=GPME,p assword=secret" does not exist in the system catalog. . in /var/www/html/GPME/technical.php on line 3
Warning: pg_close(): supplied argument is not a valid PostgreSQL link resource in /var/www/html/GPME/technical.php on line 10
My php version is 4.3.3 and pgsql version is 7.3.4.I tried this with mysql and it is working.Anyone please help me in this issue.
i am trying to connect postgres database using php.my database name is DB username=GPME and password=secret .I tried the pg_connect() using host=localhost parameter also.The following error occurs.
Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL: Database "DB,user=GPME,p assword=secret" does not exist in the system catalog. . in /var/www/html/GPME/technical.php on line 3
Warning: pg_close(): supplied argument is not a valid PostgreSQL link resource in /var/www/html/GPME/technical.php on line 10
My php version is 4.3.3 and pgsql version is 7.3.4.I tried this with mysql and it is working.Anyone please help me in this issue.
Comment