Answered
Can you use a php variable to filter a recordset?
I've got a table of 'events', which have a description and
more importantly for this a month ID number. (1-12 for the months
of the year, when the event takes place) .
I've used php's date function on a page to fund out numerically what month it is now $thismonth = date("n");
i want to filter my recordset by only bringing up events that take place during the current month so where event_month = $thismonth
IS this possible? It seems like it should be easy to do but I can't get it to work.
Thanks in advance
Dave
I've used php's date function on a page to fund out numerically what month it is now $thismonth = date("n");
i want to filter my recordset by only bringing up events that take place during the current month so where event_month = $thismonth
IS this possible? It seems like it should be easy to do but I can't get it to work.
Thanks in advance
Dave
