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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -