My code is this:
array('ANNO_MATURITA','in','range'=>'ANNO_IMMATRICOLAZIONE')
Is possible write this code to control that the date of ANNO_IMMATRICOLAZIONE is must bigger then date of ANNO_MATURITA?
My code is this:
array('ANNO_MATURITA','in','range'=>'ANNO_IMMATRICOLAZIONE')
Is possible write this code to control that the date of ANNO_IMMATRICOLAZIONE is must bigger then date of ANNO_MATURITA?
Since I don’t know if you need to return the keys or values from the array which are greater than ‘range’=>‘ANNO_IMMATRICOLAZIONE’ - or simply return false (or true) if any value is greater, I can only point you to the ‘Array Functions’ doc page.
I’m sure you can find something suitable here:
http://uk3.php.net/manual/en/ref.array.php
If you can be clearer what you want to return maybe I can help some more
It would also help to know in which format your dates are stored.
I just added a post here that may help if I understand what you mean:
http://www.yiiframework.com/forum/index.php?/topic/9737-comparison-date/