calendar listing recorda matching today forward and limit
4 posts by 3 authors in: Forums > CMS Builder
Last Post: December 9, 2009 (RSS)
By markr - December 8, 2009
WHERE date(datefield) >= CURdate()
Any ideas?
(Looking forward to diving into 2.0)
Re: [markr] calendar listing recorda matching today forward and limit
By ross - December 8, 2009
Thanks for posting!
I think you are on the right track here but I think it's going to be some more like: date > NOW()
But could you attach a copy of the page you are working with and I'll double check for you? If you could, actually attach it and don't just paste the code in a reply.
Thanks!
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com
Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/
Re: [markr] calendar listing recorda matching today forward and limit
By rconring - December 8, 2009
list($future_radio_showRecords, $radio_showMetaData) = getRecords(array(
'tableName' => 'radio_show',
'where' => 'hidden="0" and show_date >= (NOW() - INTERVAL 1 DAY)',
));
list($past_radio_showRecords, $radio_showMetaData) = getRecords(array(
'tableName' => 'radio_show',
'orderBy' => 'show_date DESC',
'where' => 'hidden="0" and show_date < (NOW() - INTERVAL 1 DAY)',
));
Hope this helps out.
Conring Automation Services
----------------------------------------
Software for Business and Industry Since 1987
Re: [rconring] calendar listing recorda matching today forward and limit
By ross - December 9, 2009
Thanks for posting :). Always glad to see everyone helping out :).
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com
Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/