PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hey,
I've got two columns in my database that's dates. And I wanna see how long it's between them. Like Days, Hours, Minutes, Seconds. And I can't find any good scripts for that.
I get the date by doing like this:
Look for DATEDIFF() in the DATE/TIME Functions portion of their manual. Or search these boards for DATEDIFF with me as the author. I know that I have personally answered this type of question about five times in the past two weeks.
Maybe it is DATE_DIFF(), but when I did a forum search the other day for the other poster there were like 155 results returned. Maybe it was date difference. I forget. As long as you are closer now than before, then this community forum thingy is working...
If you are pulling from the database, let the db server handle the math on it. It balances the load between servers and will ultimately speed up your script processing time.
Thanks pimptastic.
Just one question,
Well it stands on the same time all the time. Even if i shutdown my browser it still says 744 hours and all. It doesn't countdown :/