Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 075B69FA136 for ; Sun, 3 Dec 2006 19:43:39 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 51487-01 for ; Sun, 3 Dec 2006 19:43:33 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by postgresql.org (Postfix) with ESMTP id 5D4019F9F8D for ; Sun, 3 Dec 2006 19:43:33 -0400 (AST) Received: by ug-out-1314.google.com with SMTP id k3so2545693ugf for ; Sun, 03 Dec 2006 15:43:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=dx0henxNew7aSz9TaPXjqJhLqPa5BXvPfFP3iXwddwrL5648Dq2KRP3egq2trYbXRMml69jOSa+6iPZo3Efucl2hE9edVaPKFZYtffcnO/zmIdxd6b9r/F7+GR5bATnptKf2/k/gTaEFjCseq7qJwr4sntvlDITNH2lqoQF0U5s= Received: by 10.78.178.5 with SMTP id a5mr7138435huf.1165189411538; Sun, 03 Dec 2006 15:43:31 -0800 (PST) Received: by 10.78.52.11 with HTTP; Sun, 3 Dec 2006 15:43:31 -0800 (PST) Message-ID: <1cbd6f830612031543w26cdb6e2s82f1b958009d1b7@mail.gmail.com> Date: Sun, 3 Dec 2006 18:43:31 -0500 From: "Mag Gam" To: "Randy Moller" Subject: Re: HTML FORMS selected question Cc: pgsql-php@postgresql.org In-Reply-To: <20061203232352.A93629F9F8D@postgresql.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5876_15160297.1165189411076" References: <457358D9.4000404@gmail.com> <20061203232352.A93629F9F8D@postgresql.org> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.096 tagged_above=0 required=5 tests=AWL, BAYES_20, HTML_30_40, HTML_MESSAGE, NORMAL_HTTP_TO_IP, SPF_PASS X-Spam-Level: X-Archive-Number: 200612/5 X-Sequence-Number: 3673 ------=_Part_5876_15160297.1165189411076 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Randy + Chris: Thx for the quick replies! Chris: $rows contain ip addresses (postgresql inet) type (example: 192.168.0.1) $options contain ip addresses (postgresql inet0 type (example: 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. HTH On 12/3/06, Randy Moller wrote: > > Maybe it's just a typo, but your pg_query is returning into the var > $result_ip, while your fetch is referencing var $result (without _ip). > Maybe that's just a typo for your question, but if not, that is at least > one > error. > > Also, it would be helpful to know what error you're getting.... > > Randy Moller > > -----Original Message----- > From: pgsql-php-owner@postgresql.org [mailto: > pgsql-php-owner@postgresql.org] > On Behalf Of Chris > Sent: Sunday, December 03, 2006 4:08 PM > To: Mag Gam > Cc: pgsql-php@postgresql.org > Subject: Re: [PHP] HTML FORMS selected question > > Mag Gam wrote: > > I am having trouble getting values populated in my form... Here is what > > I got so far: > > > > //The values that need to be selected > > $result_ip=pg_query($dbconn,$test_query); > > > >