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-03 23:48:05
Message-ID: (view raw or whole thread)
Lists: pgsql-php
Mag Gam wrote:
> Randy + Chris:
> Thx for the quick replies!
> Chris:
> $rows contain ip addresses (postgresql inet) type (example: 
> <>)
> $options contain ip addresses (postgresql inet0 type (example: 
> <>)
> (keep in mind) they are both arrays. $rows contact all ips, and $options 
> contact the ip addresses that were selected
> Randy:
> I am not sure what you mean. The variables look right. I am getting no 
> errors! Just the logic is messed up.

I think Randy's right.

At the top you have:

//The values that need to be selected
but you are doing this:

while ($row = pg_fetch_array($result)) {

$result_ip  at the top, $result in the second bit.

If you don't see errors, turn up error reporting & display errors:

ini_set('display_errors', true);

Also that's not what I meant. I meant add a var_dump or print_r at each 
stage to see what you are *really* getting from the code.

Postgresql & php tutorials

In response to


pgsql-php by date

Next:From: Mag GamDate: 2006-12-04 00:00:45
Subject: Re: HTML FORMS selected question
Previous:From: Mag GamDate: 2006-12-03 23:43:31
Subject: Re: HTML FORMS selected question

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