Here’s a quick MySQL tip I wanted to throw your way. I created an event system a while back and one of the requirements of the system was to show events that happened yesterday forward, meaning events older than 2 days were to be hidden. MySQL’s date_add will allow you to do just [...]
Follow Me! Twitter | Facebook | LinkedIn | MooTools Forge.
Full David Walsh Blog Post: Quick Tip: MySQL date_add
Related posts:
- Adding Days To Dates In MySQL
- Breaking & Fixing Dates from MySQL to PHP
- Format Date Fields Using MySQL DATE_FORMAT()
- Return Random Records in MySQL
- Add Events to the PHP Calendar