Skip site navigation (1) Skip section navigation (2)

Re: HTML FORMS selected question

From: Chris <dmagick(at)gmail(dot)com>
To: Mag Gam <magawake(at)gmail(dot)com>
Cc: Randy Moller <zoomerz(at)comcast(dot)net>, pgsql-php(at)postgresql(dot)org
Subject: Re: HTML FORMS selected question
Date: 2006-12-04 00:25:59
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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(....)

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)) {

Postgresql & php tutorials

In response to

pgsql-php by date

Next:From: operationsengineer1Date: 2006-12-04 17:59:11
Subject: Re: HTML FORMS selected question
Previous:From: Randy MollerDate: 2006-12-04 00:23:25
Subject: Re: HTML FORMS selected question

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group