[Plugin: custom tables] date filter
-
hi,
i’m using the free version of custom tables 3.4.4 and i’m trying to filter a table for a date field.
The thing is that i want to filter the date by year.
i tried something like
<?php
$datefrom = time(date(‘d/m/Y’,’01/01/2011′));
$dateto = time(date(‘d/m/Y’,’01/01/2012′));
echo ‘[wctable id=”24″ limit=”5″ filter=”datefield>=\’$datefrom\’ AND datefield<=\’$dateto\'”]’;
?>or
<?php
echo ‘[wctable id=”24″ limit=”5″ filter=”datefield LIKE \’%2012\'”]’;
?>but the table output is always empty. there’s some other way to filter the table??
thanks for the usefull plugin
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: custom tables] date filter’ is closed to new replies.