pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ryanne cruz <ryanne.cruz@up.edu.ph>
To: \\\"pgsql-php@postgresql.org\\\" <pgsql-php@postgresql.org>
Subject: Re: problem with select option
Date: Thu, 30 Jan 2003 14:53:08 +0800
Message-ID: <1043909588.3e38cbd4354ca@mail.up.edu.ph> (raw)

 
hi list. 
 
i have a script that works initially. here is the script: 
 
<?php  
$conn=pg_connect("host=127.0.0.1 dbname=db user=name password=pword"); 
if (!$conn){ 
   echo("<P> Unable to connect to the database server at this time.</P>"); 
    exit();      } 
else{$query0="SELECT  municipality  FROM municipality where provinceid=$provid 
order by municipality;"; 
       $result0=pg_exec($conn, $query0); 
      } 
        $numrows0=pg_numrows($result0); 
        $CurrentRow0=0; 
        while ($CurrentRow0 < $numrows0) { 
       $model0=pg_result($result0, $CurrentRow0); 
      echo "<font face=\"Verdana\" size=1><option 
value=$model0>$model0</option></font>"; 
      $CurrentRow0++; 
      } 
?> 
 
this is only part of the script. when no municipality is chosen, this still 
works. what i mean is that it still shows the municipalities in the drop down 
box. but if i choose a certain municipality, there will be no municipalities 
shown in the drop down box.  
 
i know there's something wrong with the script but i just can't figure it out. 
any ideas? 
 
thanks. 
 
ryanne 



view thread (2+ messages)  latest in thread

Message-ID: <1043909588.3e38cbd4354ca@mail.up.edu.ph>
Permalink:  ../1043909588.3e38cbd4354ca@mail.up.edu.ph/
Also on:    postgresql.org/message-id/1043909588.3e38cbd4354ca@mail.up.edu.ph

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: ryanne.cruz@up.edu.ph
  Subject: Re: problem with select option
  In-Reply-To: <1043909588.3e38cbd4354ca@mail.up.edu.ph>
  References: <1043909588.3e38cbd4354ca@mail.up.edu.ph>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox