forumnz Posted June 7, 2008 Share Posted June 7, 2008 I have a table in a database, and I want to select all the rows with a datetime between two dates.. for example from the start of June until now.. how do I do this in a mysql query? Thanks! Sam. Quote Link to comment Share on other sites More sharing options...
mrdamien Posted June 8, 2008 Share Posted June 8, 2008 SELECT * FROM db WHERE `date` BETWEEN UNIX_TIMESTAMP('2008-06-01 00:00:00') AND UNIX_TIMESTAMP(NOW()) 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.