Jump to content

[SOLVED] selecting date range


jakebur01

Recommended Posts

How do I query a date range? I have a date column in my mysql table. I want to select a range of rows between : Ex. 2007-08-05 through 2007-08-30 .

 

I also would like to have the page that sends the query as a form.. option value that shows all of the available dates, so i can select a from date and a to date.

 

I have never done anything with dates before, I need some help getting going.

Link to comment
https://forums.phpfreaks.com/topic/73810-solved-selecting-date-range/
Share on other sites

That's not what i'm trying to do. I want to select all of the available dates from a column, but not the same one twice.

 

ex.:

[b]date1 column[/b]
2007-08-05
2007-08-05
2007-08-05
2007-08-05
2007-08-06
2007-08-06
2007-08-08
2007-08-08
2007-08-11
2007-08-12

 

and select only the available dates and not the same one twice. like:

2007-08-05

2007-08-06

2007-08-08

2007-08-11

2007-08-12

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.