vishalashah Reply #1, 1 year, 1 month ago
Hi,
I have created a mini event manager by my self (A simple form to submit an event and using getPage and Rowboat, I fetch the list). Now, I would like to filter the events based on the Start Date (My table structure is: Title (Text), StartDate (Date), StartTime (Text), EndDate (Date), EndDate (Date), EndTime (Text), Location (Text) and Description (Text)).
My date format is 4/15/2011 (m/d/y)
My current call is as follows:
I would like to add a where clause to get only those events that are starting today or in the future. I don't want to list the past events.
I tried the following, by at this time the snippet sets the value to default.
Can anybody help me resolve this, please.
I have created a mini event manager by my self (A simple form to submit an event and using getPage and Rowboat, I fetch the list). Now, I would like to filter the events based on the Start Date (My table structure is: Title (Text), StartDate (Date), StartTime (Text), EndDate (Date), EndDate (Date), EndTime (Text), Location (Text) and Description (Text)).
My date format is 4/15/2011 (m/d/y)
My current call is as follows:
[[!getPage:default=`There are no upcoming events.`? &element=`Rowboat` &table=`tableName` &sortBy=`startdate` &tpl=`eventsOnHome` &limit=`5`]]
I would like to add a where clause to get only those events that are starting today or in the future. I don't want to list the past events.
I tried the following, by at this time the snippet sets the value to default.
[[!getPage:default=`There are no upcoming events.`?
&element=`Rowboat`
&table=`tableName`
&where=`{"startdate:>=", DATE_FORMAT(CURDATE(),'%e/%c/%Y')}`
&sortBy=`startdate`
&tpl=`eventsOnHome`
&limit=`5`]]Can anybody help me resolve this, please.