Thanks Jacob and Sascha, I would've struggled with that one for a day before I realized what was wrong. Thanks again -- it works great!
Regards (and thanks yet again :>) Andre On Wednesday 18 September 2002 09:54 pm, Jacob Miller wrote: > Move <select></select> outside the do-while loop: > > print "<SELECT name=rapped>"; > > $row = 0; > do > { > $myrow = pg_fetch_array($result,$row); > if ($myrow['rupload'] != "") { > > print "<option>{$myrow['rfname']} > {$myrow['rsname']}</option>"; > > } > > $row++; > } while ($row < $numrows); > > print "</select>"; > > pg_close($db); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php