Re: PHP-Postgres link

Поиск
Список
Период
Сортировка
Искать
От
Serj MD
Тема
Re: PHP-Postgres link
Дата
Msg-id
00041312371801.11528@ocher
Список
Дерево обсуждения
Re: PHP-Postgres link Serj MD <root@ocher.pstu.ac.ru>
Hi,
I don't use pg_fetch_array. My english very bad and reading englesh documents
veri dificult for me. I use pg_result() and it is working. Look this:


It's worked. I don't have problem.

Best regards,
Serj MD


> Hi,
> I didn't get what is the exact problem/error about the part of the php code. 
> May be you should explain more....
> Any way, I had offen used pg_fetch_array function to get the data from the 
> tables. But If there is a sintax problem/error on your code,As I noticed, 
> may be you have to simply correct it by putting a ";" at the end of echo 
> instead of "."  like this :
> 
> echo pg_result($result, $i, "userindex") . " | " . pg_result($result, $i, 
> "username") . " | " .  pg_result($result, $i, "password") . " | " 
> .pg_result($result, $i, "field  4???") . " 
" ; > > > Hope that helps. Feel free to contact me . > Omid Omoomi > > > > >From: Serj MD > >To: pgsql-general@postgresql.org > >Subject: Re: [GENERAL] PHP-Postgres link > >Date: Wed, 12 Apr 2000 07:31:21 -0400 > > > >Hello, > >I don't speak english, I'm sorry > >My example: > > > >$connection = pg_connect("", "", "", "users"); > >$query = pg_exec($connection, "INSERT INTO login VALUES ( '$userindex', > >'$uname', '$password', '1')"); > >$result = pg_exec ($connection, "select * from login"); > >$num = pgNumRows($result); > >for($i = 0; $i < $num; $i++) > >{ > >echo pg_result($result, $i, "userindex") . " | " . pg_result($result, $i, > >"username") . " | " . pg_result($result, $i, "password") . " | " > >.pg_result($result, $i, "field 4???") . "
" . > >} > > > > > >??????????????????????????????? > > > >Best regards, > >Serj MD
В списке pgsql-general по дате отправления
От: Michael Sobolev
Дата:
Сообщение: Re: Character encodings...
От: Oliver Elphick
Дата:
Сообщение: Re: Character encodings...
FAQ