PHP: date between date

Karem picture Karem · Nov 17, 2010 · Viewed 8.8k times · Source

I have two dates:

10-11-2010 and 17-11-2010

Now i would like to SELECT all rows with the dates between those two.

How can I do that?

Answer

Haim Evgi picture Haim Evgi · Nov 17, 2010

its very simple using between in where clause , read more

select * from mytable where date between '10-11-2010' and '17-11-2010'