Re: Connection problem

Поиск
Список
Период
Сортировка
От Ewald Geschwinde
Тема Re: Connection problem
Дата
Msg-id 3C0CE388.40306@cybertec.at
обсуждение исходный текст
Ответ на Connection problem  (Laukó Péter <plauko@freemail.hu>)
Список pgsql-php
>
>
>
>The code is:
><?
>
>class DBConnection
>{
>    var $con_string;
>
>    function DBConnection()
>    {
>        $con_string = "dbname=hajnalcsillag user=lao password=abc123 host=localhost port=5432";
>        $ret = pg_connect( $this->con_string );
>    }
>}
>
>?>
>

it's better to do it so
$this>con_string="dbname.....";
otherwise you run into big trouble
cause
$this->con_string =>GLOBAL
$con_string=>local

PHP is nto so stble with such declarations
(real-tie experience)
Ewald




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

Предыдущее
От: "Dan Wilson"
Дата:
Сообщение: Re: Connection problem
Следующее
От: Marius Andreiana
Дата:
Сообщение: How to manage search results?