/    Sign up×
Community /Pin to ProfileBookmark

question on a list

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

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@MauAug 25.2005 — 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.
Copy linkTweet thisAlerts:
@keko2005authorAug 25.2005 — 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.
Copy linkTweet thisAlerts:
@MauAug 25.2005 — You just use the same logic I mentioned above, except don't omit the form and check boxes.
×

Success!

Help @keko2005 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...