leeh14 Posted May 9, 2011 Share Posted May 9, 2011 Hi, Can anyone point me in the right direction please? I want to have a drop down box which when a user clicks on a category the results on the page have changed to show only the data which is relative to the category chosen by the user. I also need a way so that when they click view all they are able to see all the results again. Not really sure what to look for or even how hard this might be. Lee Quote Link to comment https://forums.phpfreaks.com/topic/235915-dynamic-query-from-a-drop-down-box/ Share on other sites More sharing options...
jonsjava Posted May 9, 2011 Share Posted May 9, 2011 I won't actually write code for it, but I will point you in the right direction. You will need to use AJAX (Dynamic page changes without reloading the page=AJAX). AJAX is Javascript and Server-Side scripting. The javascript makes XMLHTTP requests, and waits for a response. Once it gets a response, you can echo the data out. Simple as that. The coding is the hard part. Get some code, and post it here if you have issues. Quote Link to comment https://forums.phpfreaks.com/topic/235915-dynamic-query-from-a-drop-down-box/#findComment-1212744 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.