|
| Re: Date question |
 |
Wed, 27 Feb 2008 05:45:04 +000 |
use this
SELECT * FROM fixtures WHERE Match_Date BETWEEN now() AND (now() -7)
|
| Post Reply
|
| Re: Date question |
 |
Wed, 27 Feb 2008 07:45:20 +000 |
Hey try this. This will surely work
SELECT * FROM fixtures WHERE Match_Date BETWEEN now() AND date_sub(now(),
INTERVAL 7 DAY);
|
| Post Reply
|
| Re: Date question |
 |
Wed, 27 Feb 2008 19:29:35 +000 |
Thanks for all the reposnses but none of them seem to work for me.
Has anyone used these before with a MySql database and had anything similar
happen?
|
| Post Reply
|
| Re: Date question |
 |
Wed, 27 Feb 2008 20:51:04 +000 |
I doubt you tried my solution of calculating the date in your application logic.
If this is failing then you probably did not implement the logic correctly.
|
| Post Reply
|
| Re: Date question |
 |
Wed, 27 Feb 2008 21:15:31 +000 |
Thanks for the help!
|
| Post Reply
|
|
|
|
|
|
|
|
|
|