[ACCEPTED]-PHP: date between date-between
Accepted answer
its very simple using between
in where clause
, read more
select * from mytable where date between '10-11-2010' and '17-11-2010'
0
$datefrom=date('Y-m-d'); $dateto=date('Y-m-d');
$sql 2 = 'select * from mytable where depositdate 1 between $datefrom and $dateto';
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.