Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.