php - selecting rows from database between two dates giving wrong results -


selecting rows database between 2 dates giving wrong results, below query not working me. tried answers, 1 not giving correct results.i think, missing somewhere.

select * table date between '07/10/2015' ,  '07/14/2015' 

changed

select * table date between '07-10-2015' ,  '07-14-2015' 

still not working!

that's right, can not use between statement when data type format not date or datetime, must change data type first.

btw realized data type date/datetime format can't use / in sql statement when using mysql, versus sql can use / when column data type date/datetime. correct me if i'm wrong...


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -