maximo1970
ISP
Sorry about the subject line but I can't think of how to describe my problem.
My DataBase table contains a field for the date and time, ie 2004-03-06 21:34:12. I want to group by the date only, ei 2004-03-06. I'm using perl to select the data which is then displayed on a web site. I have the date in a variable but just can't seem to find the right function to select my data. I have tried :-
Date LIKE '2004-03-06%' this works.
Date LIKE \"$date\" this does not work.
Date LIKE \"$date%\" this does not work either.
So any help would be great.
Cheers.
My DataBase table contains a field for the date and time, ie 2004-03-06 21:34:12. I want to group by the date only, ei 2004-03-06. I'm using perl to select the data which is then displayed on a web site. I have the date in a variable but just can't seem to find the right function to select my data. I have tried :-
Date LIKE '2004-03-06%' this works.
Date LIKE \"$date\" this does not work.
Date LIKE \"$date%\" this does not work either.
So any help would be great.
Cheers.