I have a test mysql table with 15 rows, and 4 columns. What I want to be able to do is use a form and filter down the mysql results using ajax requests so when a user invokes a filter they can see the changes in the resulting dataset. I have a demo of what I am talking about at http://marketing.cox7.com. My question / issue is that I can not figure out how to bind the filters together, for example when you visit that page and select segment 1 from the first drop down, you will see the updated results with only segment 1 as a value, I then want to select a key marketing challenge value from the drop down and see only records that both match the segment and key marketing selections. Can you provide any tips and or ideas?
Sean
here is my index.php
[php]
Client Segment: Please Select 1 2 3 4
Key Marketing Challenge: Please Select Awareness-NEW Awareness-MAINTAIN Community
Target Demographic: Please Select Adults 18-34 Adults 18-49 Adults 25-54
"; echo "
Package | Segment | KMC | Demo |
---|---|---|---|
" . $row['Package'] . " | "; echo "" . $row['Segment'] . " | "; echo "" . $row['Kmc'] . " | "; echo "" . $row['Demo'] . " | "; echo "
[/php]
here is the getsegment.php file
[php]
"; echo "
Package | Segment | KMC | Demo |
---|---|---|---|
" . $row['Package'] . " | "; echo "" . $row['Segment'] . " | "; echo "" . $row['Kmc'] . " | "; echo "" . $row['Demo'] . " | "; echo "
[/php]
here is the getkmc.php file
[php]
"; echo "
Package | Segment | KMC | Demo |
---|---|---|---|
" . $row['Package'] . " | "; echo "" . $row['Segment'] . " | "; echo "" . $row['Kmc'] . " | "; echo "" . $row['Demo'] . " | "; echo "
[/php]