Calculate Time Difference in php mysql

I have a sending emails php page which send email with same dates retired from mysql databes table this is a sample code:

$msg.="Date: ".$datatmp["arivaldate"]."\r\n";
where arivaldate is the field containing the date in the mysql databse table I want to add another variable to calculate the difference between arivaldate and Now() something looks like :

$msg.="Date: ".$datatmp["arivaldate"]."\r\n";

$msg.="Arrive In: ".$Idontknowwhat."\r\n";
Please Help

I believe this is very easy and simple bu I still did not get any answer

http://php.net/manual/en/datetime.diff.php & http://php.net/manual/en/dateinterval.format.php

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.