Hey all. I have a form that allows a user to specify a month and year as a range for generating a report. The month and year are in xx and xxxx format respectively so as to coincide with the MySQL DATE field. What I need help with is how do I take the two variables, once passed to the script that will generate the report, and return result records that match the given range. I.E. if $year = MySQL YEAR && $month = MySQL MONTH of the DATE.
The DATE field is populated using the YYYY-MM-DD format generated by the date("Y-m-d"); PHP statement.
I hope this was clear to understand. Thanks in advance!