question regarding 'where' clause

2 posts by 2 authors in: Forums > CMS Builder
Last Post: February 8, 2011   (RSS)

By kovali - February 7, 2011

Hi,

I am using this where clause: 'where' => 'year=2011',
This shows me all the records for the year 2011

Question: Is it possible to use some php code (instead of the fixed value 2011) that will automatically fill in the current year ? So next year I don't have to change it manually to 2012... and so on for every next year ??

Thanks for your help,
Koen