Re: HTML FORMS selected question - Mailing list pgsql-php

From Chris
Subject Re: HTML FORMS selected question
Date
Msg-id 45736235.6080302@gmail.com
Whole thread Raw
In response to Re: HTML FORMS selected question  ("Mag Gam" <magawake@gmail.com>)
Responses Re: HTML FORMS selected question
List pgsql-php
Mag Gam wrote:
> Randy + Chris:
>
> Thx for the quick replies!
>
> Chris:
>
> $rows contain ip addresses (postgresql inet) type (example: 192.168.0.1
> <http://192.168.0.1>)
> $options contain ip addresses (postgresql inet0 type (example: 127.0.0.1
> <http://127.0.0.1>)
> (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
$result_ip=pg_query($dbconn,$test_query);
^^^^^^^^^
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:

error_reporting(E_ALL);
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
http://www.designmagick.com/

pgsql-php by date:

Previous
From: "Mag Gam"
Date:
Subject: Re: HTML FORMS selected question
Next
From: "Mag Gam"
Date:
Subject: Re: HTML FORMS selected question