Sid3335
04-21-2006, 09:12 AM
i'm trying to run a query that gets all records where the date is in the last week.
my dates in my database are in the format dd/mm/yyyy.
when i run something like:
SELECT
`statistics`.`date`
FROM
`statistics`
WHERE
`statistics`.`date` >= 20/04/2006
it returns ALL the records, alternatively if i put quotes round the date it returns dats where the day (dd) are greater than 20. so i get the 20th onwards for ALL months.
can anyone shed any light?
my dates in my database are in the format dd/mm/yyyy.
when i run something like:
SELECT
`statistics`.`date`
FROM
`statistics`
WHERE
`statistics`.`date` >= 20/04/2006
it returns ALL the records, alternatively if i put quotes round the date it returns dats where the day (dd) are greater than 20. so i get the 20th onwards for ALL months.
can anyone shed any light?