paulknox
New Member
I have a form that I want users to be able to submit only once every 12 months. I have the limit plugin set-up on the form with the following.
User element: User ID
Limit length: 1
I'm trying to use the where clause to lookup the date then add 12 months... I have tried all sorts but the closed I have got is
DAYOFYEAR(passport.date_time)>DAYOFYEAR(CURDATE())
But of course this only works if the returned number is lower than the return date/time number.
I have tried DATEDIFF but this returns an error... Any thoughts??
Paul
User element: User ID
Limit length: 1
I'm trying to use the where clause to lookup the date then add 12 months... I have tried all sorts but the closed I have got is
DAYOFYEAR(passport.date_time)>DAYOFYEAR(CURDATE())
But of course this only works if the returned number is lower than the return date/time number.
I have tried DATEDIFF but this returns an error... Any thoughts??
Paul