Jump to content

dynamic query from a Drop Down Box


leeh14

Recommended Posts

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 

Link to comment
https://forums.phpfreaks.com/topic/235915-dynamic-query-from-a-drop-down-box/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.