Andy11548 Posted July 10, 2011 Share Posted July 10, 2011 Whats the best way to do this: I've created a forums and I would like to do the "Last post by: Andy11548 in $topicName at $date" thing they do on forums. How would I make it so so that I have it like If the date is the same as today, it says "today", If the date was yesterday, it says "Yesterday", If the date was neither of thoes, it says the date it was posted on. What field would I need to put into my database and how would I go about calling it to do this? Thanks, Andy. Quote Link to comment https://forums.phpfreaks.com/topic/241572-how-to-display-timedate-the-best-way/ Share on other sites More sharing options...
Andy11548 Posted July 11, 2011 Author Share Posted July 11, 2011 Bump, does anyone have a idea? Quote Link to comment https://forums.phpfreaks.com/topic/241572-how-to-display-timedate-the-best-way/#findComment-1241123 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.