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

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -