| From: | Edouard DESSIOUX <edx(at)intrinsec(dot)com> |
|---|---|
| To: | pgsql-interfaces(at)postgresql(dot)org |
| Subject: | Using php and postgres |
| Date: | 1999-10-14 10:08:24 |
| Message-ID: | 9910141208580I.00504@dooz.corp.intrinsec.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-interfaces |
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 ("dbname=manip port=5432");
?>
</HTML>
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 !!"
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bartek Teodorczyk | 1999-10-14 10:27:35 | Default encoding |
| Previous Message | Patrick Welche | 1999-10-13 18:25:31 | ODBC / M$Access error |