devilinc Posted November 22, 2010 Share Posted November 22, 2010 i have a drop down list of values which i had retrieved from table and displayed in this select drop down box...each value in drop down has corresponding information stored in table......now what i want to do is get the information for the corresponding value from the database table when one of the value is selected and display it below....how do i go about it? Link to comment https://forums.phpfreaks.com/topic/219430-on-change-of-drop-down-list/ Share on other sites More sharing options...
Mr_J Posted November 22, 2010 Share Posted November 22, 2010 Dude, Give us some more info... It is very much possible to do it. Like if you need to display (and you can even update etc) the row of the table in the db. Your string will look something similar to: <table> <option select) <tr> <td><? echo ''$row1;?></td> </tr> </table> Of course this is very incomplete. You need to connect to the DB and select table and so on. Have you tried something yet? Do you know php? meaning how much knowledge have you got when writing in PHP I'm a noob myself but I like it... yeh, I like Peace out Link to comment https://forums.phpfreaks.com/topic/219430-on-change-of-drop-down-list/#findComment-1137829 Share on other sites More sharing options...
devilinc Posted November 22, 2010 Author Share Posted November 22, 2010 yeh i did some reading and i found out that ajax will do the trick and now i am working on it....thanks for looking through....i know it was a silly question to ask.... Link to comment https://forums.phpfreaks.com/topic/219430-on-change-of-drop-down-list/#findComment-1137842 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.