Click to See Complete Forum and Search --> : question on a list


keko2005
08-25-2005, 01:01 AM
ok what i want to do is, retrieve information from a db, and load it in a list of some sort, which a user will be able to select a value/file from the list. is there a way to do this? if so, can u please explain how i should go about doing it, does someone have a link. i dont want any code, want to learn myself

Mau
08-25-2005, 01:07 AM
This can be easily done (and is done almost everywhere). :)

You first select all your rows from the database (MySQL, SQLite, etc).

Next, you begin to output the form. You get the part where what you just selected should appear. So, you do a loop to save time. This loop takes the data that you selected and outputs them as check boxes.

keko2005
08-25-2005, 09:47 AM
its not a form though, theres gonne be no submit, just a preview button, and a relay button, also i want the selection to highlight when the user clicks it. i dont know if ur familiar with java, but in java theres a JList component where u can highlight ur selection. this is what i would like to do, not a form where the user can choose by checking checkbox's, thanks though.

Mau
08-25-2005, 12:25 PM
You just use the same logic I mentioned above, except don't omit the form and check boxes.