Re: DO and QF populating select options

From: Date: Sun, 16 Oct 2005 17:11:06 +0000
Subject: Re: DO and QF populating select options
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21504@lists.php.net to get a copy of this message
On 10/16/05, Prue <prue@clipmagic.com.au> wrote: > Hi > > This should be easy - everything I've read says so, but I cant get it > working. I have a DataObject that references another table via a foreign > key. The relationships are set up in links.ini. I can factory the second > table and retrieve the query, eg id and name which will be the select > options, but I cant work out how to then insert the result into the QF > select element options. > > Sorry this is such a dumb question. I've read, looked, tried everything I > can think of and I know it shouldn't be difficult but... > Look at the HTML_QF manual for how to add options to a select. Then loop over your DO records and add an option for each record. BTW, DB_DO_FB would do all this automatically for you. -- Justin Patrin

« previous php.pear.general (#21504) next »