mac_gyver Posted May 17, 2013 Share Posted May 17, 2013 if you test your query you will find that date values the same as $to_data with times greater than zero on that date are not matched. the code that barand gave you using date(created) BETWEEN '$from_data' AND '$to_data' is what you should be using. Quote Link to comment Share on other sites More sharing options...
83Lee83 Posted May 17, 2013 Author Share Posted May 17, 2013 if you test your query you will find that date values the same as $to_data with times greater than zero on that date are not matched. the code that barand gave you using date(created) BETWEEN '$from_data' AND '$to_data' is what you should be using. I see your point, I've removed the time aspect now. Many thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.