Re : Using php and postgres

Поиск
Список
Период
Сортировка
От Edouard DESSIOUX
Тема Re : Using php and postgres
Дата
Msg-id 9910141317010J.00504@dooz.corp.intrinsec.com
обсуждение исходный текст
Список 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 ("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 !!"


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Edouard DESSIOUX
Дата:
Сообщение: Using php and postgres
Следующее
От: gravity
Дата:
Сообщение: Re: [INTERFACES] Using php and postgres