I am working on a site that is going to be listing diners in my town and local cities. I have been reading up the tutorial on the sitepoint.com site with PHP and mysql. Well I have been going thru that pretty good. But I have one question. How would i setup a pulldown menu so that when you would say select munster it would go to the database and pull the information out of the database and put it on the page. I am not clear with the way to set up the pulldown menu. I know how i could do this with just a standard link but not a pulldown menu. Thank you for your help in advance.
I would say their are to options available for this, each one includes javascript (no doubt). First: Pull out all the results that could possibly happen into an array and sort through the array accordingly. ie array('value1' => 'This is the content for value 1 blah blah blah blah', 'value2' => 'this is the content for value 2 hoohaahh blah bleh blah'); Then simply use div's to show which value Second option: AJAX - I have no idea how to use it, but I may recommend this site http://www.ajaxfreaks.com
you could also build two arrays in Javascript, and populate a second list based on the selection of the 1st here's the code to do it: http://www.justin-cook.com/wp/2006/...ing-select-menus-client-side-with-javascript/