PDA

View Full Version : Row from database


wolx
07-26-2008, 05:34 PM
Ok, my table has two fields: start_date and end_date. How could I get only the rows out of the database, where the start_date is before the date right now and the end_date is after the date right now?

My English grammar isn't too good, I hope you understand.. :S

abduraooft
07-26-2008, 05:39 PM
.........where start_date < now() and end_date > now()

wolx
07-26-2008, 05:41 PM
Now that I see it, In don't get, how I didn't think about it before.. :D Simple. :)

Thanks! :P