By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,663 Members | 762 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,663 IT Pros & Developers. It's quick & easy.

drop down menu

P: 1
hello sir,



I am new for programming .so just now i learn the concepts in php.
so i have some doubt regarding to the drop down list.



How to retieve the tables from data base by using drop down list ?

data base:calender
table:users
in table iam using:user_id,user_name_user_desc;
please help me sir
Jan 8 '08 #1
Share this Question
Share on Google+
2 Replies


nathj
Expert 100+
P: 938
hello sir,



I am new for programming .so just now i learn the concepts in php.
so i have some doubt regarding to the drop down list.



How to retieve the tables from data base by using drop down list ?

data base:calender
table:users
in table iam using:user_id,user_name_user_desc;
please help me sir
Duplicate post - sorry see the above post for my reply
Jan 8 '08 #2

nathj
Expert 100+
P: 938
hello sir,



I am new for programming .so just now i learn the concepts in php.
so i have some doubt regarding to the drop down list.



How to retieve the tables from data base by using drop down list ?

data base:calender
table:users
in table iam using:user_id,user_name_user_desc;
please help me sir
Hi,

Welcome to The Scripts.

First of all you are going to need someway of retreiving the data from the database.

Once you have the data you can loop through the results and build up the select box definition.

Read this article on PHP Data Abstraction. This will help you get the dat aretreival sorted then look at the PHP Array handling methods, and the foreach loop. This coupled with how a Select is definied should see you straight.

I have done this several times but I think it's more beneficial if you have a go at this frst. If you get stuck post back with your code in code tags and I'll do what I can to help you out.

Cheers
nathj
Jan 8 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.