[[!migxLoopCollection?
&packageName=`datequote`
&classname=`DateQuote`
&selectfields=`id,quote,author,birthday`
&where=`{"birthday":"1800"}`
&tpl=`myTplTest`
&sortConfig=`[{"sortby":"pos"}]`
]][[!migxLoopCollection?
&packageName=`datequote`
&classname=`DateQuote`
&selectfields=`id,quote,author,topic,birthday`
&where=`{"birthday":"if(preg_match_all("/find'(.+?)'/", $1800, $matches)) {
array_shift($matches);
print_r($matches);
}
else {
//no matches
}"}`
&tpl=`myTplTest`
&sortConfig=`[{"sortby":"pos"}]`
]]This question has been answered by Bruno17. See the first response.
&where=`{"YEAR(bithday)":"1800"}`&where=`{"birthday:LIKE":"%1800%"}`@LK, he es talking about MIGXdb, not MIGX
usually, you would store dates as datetime
Then you could do:
&where=`{"YEAR(bithday)":"1800"}`
but in your case, you can try:
&where=`{"birthday:LIKE":"%1800%"}`
which will be much slower, than having proper indexed datetime - fields and using the YEAR - sql-function

&sortConfig=`[{"sortby":"pos"}]`