Re: Failure to connect to database using php.

Поиск
Список
Период
Сортировка
От Volkan YAZICI
Тема Re: Failure to connect to database using php.
Дата
Msg-id 7104a73705062804042d200602@mail.gmail.com
обсуждение исходный текст
Ответ на Failure to connect to database using php.  (Vivek Sonny Abraham <vivek.sonny.abraham@gmail.com>)
Список pgsql-novice
Hi,

On 6/28/05, Vivek Sonny Abraham <vivek.sonny.abraham@gmail.com> wrote:
> <?
>
> $db = pg_connect("dbname=friends");

Are you sure above line finishes succesfully?
Please try something with more verbosity like this:

<?php
    error_reporting(E_ALL);
    $conn = pg_connect("...") or die("Database connection failed!");
    ...
?>

For more information about handling pg_connect() errors, you can take
a look at http://php.net/pg_connect and comments related to it.

Regards.

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

Предыдущее
От: Vivek Sonny Abraham
Дата:
Сообщение: Failure to connect to database using php.
Следующее
От: "Celia McInnis"
Дата:
Сообщение: Re: Transactions within plpgsql functions?