Skip site navigation (1) Skip section navigation (2)

Re : Using php and postgres

From: Edouard DESSIOUX <edx(at)intrinsec(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Re : Using php and postgres
Date: 1999-10-14 11:15:46
Message-ID: (view raw or whole thread)
Lists: pgsql-interfaces
I'm using apache postgres and php,
I created a database called "manip"
and i want to acces this database via a web page

I use the following php script to connect to the base:
$database = pg_connect ("localhost", "5432", "", "", "manip");
as specified in the php manual

And i obtain :Warning: Unable to connect to PostgresSQL server: FATAL 1: Database www does not exist in pg_database in
/www/ on line 3

Warning: 0 is not a PostgresSQL link index in /www/ on line 4

Postmaster is started, and in psql, i can read :
manip=> FATAL 1:  Database www does not exist in pg_database

Anyone know what i done wrong ?

Proverbe chien :
"Si ca se mange pas,
 Si ca se baise pas,
 Pisse dessus !!"

pgsql-interfaces by date

Next:From: Patrick WelcheDate: 1999-10-14 11:36:07
Subject: Re: [INTERFACES] ODBC / M$Access error
Previous:From: Bartek TeodorczykDate: 1999-10-14 10:34:37
Subject: JDBC: Default encoding problem

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group