i can't get the value inside my database for a specific date
sample values:
$from= 12/15/2012 $to= 12/15/2012
$from= 12/16/2012 $to= 12/16/2012
$from= 12/17/2012 $to= 12/17/2012
php script:
$query=" select * from call where (date_time BETWEEN '$from' AND '$to') ORDER BY date_time DESC";
the value on my table which i'm getting my dates from has time in it
ex values on my data base:
12/15/2012 2:51
12/15/2012 2:21
12/15/2012 2:55
12/15/2012 3:12
12/16/2012 2:51
12/16/2012 2:21
12/17/2012 2:55
12/17/2012 3:12
when i search for from 12/15/2012 to 12/15/2012
it does not display the values for
12/15/2012
but if i search for
from 12/15/2012 to 12/16/2012
it displays not only the values for 12/15/2012 but also for 12/16/2012
what should i do so that i can enclose all the values only for that specific date?