Re: HTML FORMS selected question

Поиск
Список
Период
Сортировка
От Chris
Тема Re: HTML FORMS selected question
Дата
Msg-id 45736B17.3020909@gmail.com
обсуждение исходный текст
Ответ на Re: HTML FORMS selected question  ("Mag Gam" <magawake@gmail.com>)
Список pgsql-php
Mag Gam wrote:
> Chris + Randy:
>
> Sorry, I may of forgetten to give you this:
> $result = pg_query($dbconn, "select id,address from ip");
>
> This is right before the:
> $options=pg_fetch_array($result_ip);
>
> so, my $results is really all the ip addresses ($rows after I perform
> the pg_fetch_array).
>
> I will add the var_dump to see it (never done it before, I will do some
> googling :) )

After your query add it:

$result = pg_query(....)
var_dump($result);

if that's not a "resource" then you have a problem with your query. Use
pg_last_error to work it out.


Inside your loop, add it:

while ($row = pg_fetch_array($result)) {
   var_dump($row);
}

--
Postgresql & php tutorials
http://www.designmagick.com/

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

Предыдущее
От: "Randy Moller"
Дата:
Сообщение: Re: HTML FORMS selected question
Следующее
От:
Дата:
Сообщение: Re: HTML FORMS selected question