paddyfields
12-05-2010, 07:51 PM
Hi there.
I'm trying to create my own search function for users to search for events between certain dates. One option I have is 'within next 7 days'.
So, within the SQL function I am searching "... WHERE eventdate between $from and $to.."
The $from variable I figured would be $from = date('d-m-Y',time()); (ie- todays date)... but how would I find the date in 7 days?. I've seen strtotime mentioned about the web but can't figure how this applies.
Any help would be marvelous! :thumbsup:
Cheers,
Paddyfields.
I'm trying to create my own search function for users to search for events between certain dates. One option I have is 'within next 7 days'.
So, within the SQL function I am searching "... WHERE eventdate between $from and $to.."
The $from variable I figured would be $from = date('d-m-Y',time()); (ie- todays date)... but how would I find the date in 7 days?. I've seen strtotime mentioned about the web but can't figure how this applies.
Any help would be marvelous! :thumbsup:
Cheers,
Paddyfields.