pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Edouard DESSIOUX <edx@intrinsec.com>
To: pgsql-interfaces@postgresql.org
Subject: Re : Using php and postgres
Date: Thu, 14 Oct 1999 13:15:46 +0200
Message-ID: <9910141317010J.00504@dooz.corp.intrinsec.com> (raw)

Hello,
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:
<HTML>
<?php
$database = pg_connect ("localhost", "5432", "", "", "manip");
?>
</HTML>
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/dooz.corp.intrinsec.com/mail/essai.php3 on line 3

Warning: 0 is not a PostgresSQL link index in /www/dooz.corp.intrinsec.com/mail/essai.php3 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 ?

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



Message-ID: <9910141317010J.00504@dooz.corp.intrinsec.com>
Permalink:  ../9910141317010J.00504@dooz.corp.intrinsec.com/
Also on:    postgresql.org/message-id/9910141317010J.00504@dooz.corp.intrinsec.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: edx@intrinsec.com
  Subject: Re: Re : Using php and postgres
  In-Reply-To: <9910141317010J.00504@dooz.corp.intrinsec.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox