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

I need to create a 'upcoming events' listing that selects records with a date field matching or after today's date but this is not working:


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

Hi there.

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: [rconring] calendar listing recorda matching today forward and limit

By ross - December 9, 2009

Hi Ron

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/