mattison Posted August 20, 2007 Share Posted August 20, 2007 does anyone have the code to have drop down navigation on a website? please could i have it, thanks mattison Link to comment https://forums.phpfreaks.com/topic/65860-drop-down-menue/ Share on other sites More sharing options...
cooldude832 Posted August 20, 2007 Share Posted August 20, 2007 what do you mean, also this isn't a hand out code site its a learn site. Link to comment https://forums.phpfreaks.com/topic/65860-drop-down-menue/#findComment-329138 Share on other sites More sharing options...
marcus Posted August 20, 2007 Share Posted August 20, 2007 $sql = "SELECT * FROM `tbl` WHERE `this`='that'"; $res = mysql_query($sql) or die(mysql_error()); echo "<select name=\"name\">\n"; while($row = mysql_fetch_assoc($res)){ echo "<option value=\"$row[field1]\">$row[field2]</option>\n"; } echo "</select>\n"; Link to comment https://forums.phpfreaks.com/topic/65860-drop-down-menue/#findComment-329142 Share on other sites More sharing options...
mattison Posted August 20, 2007 Author Share Posted August 20, 2007 Ty just checking see if it works orite with my site Link to comment https://forums.phpfreaks.com/topic/65860-drop-down-menue/#findComment-329147 Share on other sites More sharing options...
mattison Posted August 20, 2007 Author Share Posted August 20, 2007 no thats not what i meant i mean like..a navigation bar than when u click it you get several more options Link to comment https://forums.phpfreaks.com/topic/65860-drop-down-menue/#findComment-329152 Share on other sites More sharing options...
jcanker Posted August 20, 2007 Share Posted August 20, 2007 It sounds like you want the sub menus to appear once they make a choice? Php's not really appropriate for that. There are many good *free* javascript snippets out there that ppl have posted for others to use that do exactly what you're talking about. Link to comment https://forums.phpfreaks.com/topic/65860-drop-down-menue/#findComment-329153 Share on other sites More sharing options...
mattison Posted August 20, 2007 Author Share Posted August 20, 2007 do you happen to know any links? Link to comment https://forums.phpfreaks.com/topic/65860-drop-down-menue/#findComment-329154 Share on other sites More sharing options...
mattison Posted August 20, 2007 Author Share Posted August 20, 2007 addon - note: does anyone know any where for good codes? and anyone got the links for drop downs Link to comment https://forums.phpfreaks.com/topic/65860-drop-down-menue/#findComment-329197 Share on other sites More sharing options...
LiamProductions Posted August 20, 2007 Share Posted August 20, 2007 Here we only help you fix your codes we do not write the codes for you Link to comment https://forums.phpfreaks.com/topic/65860-drop-down-menue/#findComment-329199 Share on other sites More sharing options...
mattison Posted August 20, 2007 Author Share Posted August 20, 2007 liam unblock my msn Link to comment https://forums.phpfreaks.com/topic/65860-drop-down-menue/#findComment-329228 Share on other sites More sharing options...
mattison Posted August 21, 2007 Author Share Posted August 21, 2007 anyone codes? please? Link to comment https://forums.phpfreaks.com/topic/65860-drop-down-menue/#findComment-330156 Share on other sites More sharing options...
rbragg Posted August 21, 2007 Share Posted August 21, 2007 I have an extra Q-tip here if needed. Link to comment https://forums.phpfreaks.com/topic/65860-drop-down-menue/#findComment-330159 Share on other sites More sharing options...
samoht Posted August 21, 2007 Share Posted August 21, 2007 As said before php is not your guy for drop down menus. Have you tried gooling "drop down menu"?? I suggest you use CSS to create a drop down menu from <div> tags or from <ul>'s once you have made the menu - this site can help you populate the links with php & mysql or whatever. Do a little more work on your side and I am sure people hear will be happy to help. Link to comment https://forums.phpfreaks.com/topic/65860-drop-down-menue/#findComment-330172 Share on other sites More sharing options...
AndyB Posted August 21, 2007 Share Posted August 21, 2007 do you happen to know any links? Yes. www.google.com And this thread has no further purpose, least of all chatting. Thread closed. Link to comment https://forums.phpfreaks.com/topic/65860-drop-down-menue/#findComment-330316 Share on other sites More sharing options...
Recommended Posts