I'm hoping that someone out there can help me out with mulitple conditions on database queries. I'm working with a script that records timesheets and has many tables in my database to store timesheet information for things such as client information, project info, work categories and a few others.
My problem is that now that I'm able to record these records, I need to generate reports based on many different conditions (hopefully into pdf's). I have so many different possible select conditions that I'm going to have a ton of if statements with queries for each one.
For example if a user wants a report for all clients, a particular project, all categories, previously billed invoices, on non-rush projects, it looks like I'll have to make an if conditional based on this possibility and many, many others. I wondered if there was another way to approach this.
Here is a screenshot of what I'm working with: Click Me