I have one table named as movie. which contains fields like movie_id, movie_name etc.
I want that movie_id in my drop down list. so i have to retrive that data from movie table. I tried my best but i dont get success in this. plz help me to retrive data in my drop down list from movie table.
Jump to Post
Where do you get stuck? The principle is: construct appropriate query to retrieve rows from the table and then use data of each row to build option elements:
// query $q = 'SELECT id, title FROM movies'; // connection and querrying stuff ... // start the html …
All 6 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.