Forum Moderators: coopster
I am beefing up a site I built to query sunday school classes for our church. I have built a database that list the groups based on ageRange, groupType, and meetingTime. Right now, I have set up the navigation to where you can only view groups based on one criteria, (i.e. all ageRange or all groupType)
I'd like to increase the functionality of this site and allow to refine the results by more than one or all of the parameters.
I have set up a form, which pulls all the info from the database into menus to select, and i set up the form function to go to a results page. It currently is sending the info correctly into the URL on the results page, however I think my MySQL statement is messing things up in the results.
My SQL statement is as follows:
"SELECT * FROM tblages, tblgroup, tbltimes, tbltypes WHERE (tblgroup.ageRangeID = %s
OR tblgroup.typeID = %s OR tblgroup.timeID = %s"
- i realize that "SELECT *" is not good, but i used it here for time saving.
Can anyone help me understand better how to handle and pass the multiple parameters from my search into the page? Thanks in advance.
Take a look. :)