mercredi 8 avril 2015

PHP/Mysql: Date lower than today

Vote count:


In my database I have a field that's named: expires_in and that has values such as 2015-05-01 (YYYY-MM-DD), I need to do a search on this field (from PHP) and get back

a) dates that are lower than today (eg yesterday or x days ago)

b) dates that are greater than today but less than 2 weeks from today

I have a feeling that if I know a then b won't be hard...

asked 2 mins ago



PHP/Mysql: Date lower than today

Aucun commentaire:

Enregistrer un commentaire