[ACCEPTED]-PHP: date between date-between

Accepted answer
Score: 10

its very simple using between in where clause , read more

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

0

Score: 2

Sounds like a SQL question. Try the between condition.

0

Score: 1

$datefrom=date('Y-m-d'); $dateto=date('Y-m-d');

$sql 2 = 'select * from mytable where depositdate 1 between $datefrom and $dateto';

More Related questions