june_c21 Posted December 21, 2007 Share Posted December 21, 2007 hi,i doing a simple program for tool store. i want to make a pull down menu (title) that taken data from database.Once user click on the particular (title), the (model) of it will appear without user refresh it. how to do that? Quote Link to comment https://forums.phpfreaks.com/topic/82640-drop-down-menu/ Share on other sites More sharing options...
~n[EO]n~ Posted December 21, 2007 Share Posted December 21, 2007 Do you mean like this Quote Link to comment https://forums.phpfreaks.com/topic/82640-drop-down-menu/#findComment-420312 Share on other sites More sharing options...
ekloh Posted December 21, 2007 Share Posted December 21, 2007 When you have created you form in dreamweaver of frontpage in use the drop down menu in the form option in there you insert your code make sure the table tools exist in the database. <select name="tools" id="tools"> <?php $sql = "SELECT * FROM tools;"; $res = mysql_query($sql); while($row= mysql_fetch_assoc($res)) { echo "<option value='" . $row['id'] . "'"; echo ">" . $row['name'] . "</option>"; } ?> </select> Good luck Quote Link to comment https://forums.phpfreaks.com/topic/82640-drop-down-menu/#findComment-420313 Share on other sites More sharing options...
june_c21 Posted December 21, 2007 Author Share Posted December 21, 2007 ekloh ,but that one is for pull down menu for title only. what bout after user select title and the model will come out without user refresh it? Quote Link to comment https://forums.phpfreaks.com/topic/82640-drop-down-menu/#findComment-420332 Share on other sites More sharing options...
june_c21 Posted December 21, 2007 Author Share Posted December 21, 2007 n~ link=topic=173054.msg768018#msg768018 date=1198225049] Do you mean like this i read this before but i don't really understand.may b you can explain more Quote Link to comment https://forums.phpfreaks.com/topic/82640-drop-down-menu/#findComment-420333 Share on other sites More sharing options...
anon Posted December 21, 2007 Share Posted December 21, 2007 Or you could just use flash. Quote Link to comment https://forums.phpfreaks.com/topic/82640-drop-down-menu/#findComment-420366 Share on other sites More sharing options...
june_c21 Posted December 25, 2007 Author Share Posted December 25, 2007 anyone can help me on this? Quote Link to comment https://forums.phpfreaks.com/topic/82640-drop-down-menu/#findComment-422754 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.