Hi,
I currently have a table with a column (year), and I have data for 2012, 2013, 2014.
I need to let user upon login, they will only see current year data which is 2013 and when they use advance search, they can view other year's data.
I tried to input the following code in After table initialized, user when login they can see 2013 data but when they try advance search for other year's data, the data did not appear. Can anyone kindly help on this as I need this to be done urgently? Thanks.
$query->addWhere("year='".date(Y)."'");