mysql statement not return correct result -


i have mysql row 'date = 2013-05-02, type = 1' etc.

then run query

select date, type, status, rate  reservation   type = 1  , date between 2013-05-01 , 2013-05-08   order date asc  limit 0, 10 

but returns empty results. query issue here?

put dates in quotes ' in mysql query.

select date, type, status, rate  reservation   type = 1  , date between '2013-05-01' , '2013-05-08' order date asc limit 0, 10 ; 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -