Hi i been coding this time message was sent at for wapdesire v2 script but for some reason it only shows hours and seconds, and not minutes.. can somebody help me to fix this...
Heres what i have:
$noi = mysql_fetch_array(mysql_query("SELECT timesent FROM inbox WHERE id='".$id."'"));
$var1 = date("his",$noi[0]);
$var2 = time();
$var21 = date("his",$var2);
$var3 = $var21 - $var1;
$var4 = date("his",$var3);
$main.="<b><p align=\"center\">This Message Was Sent</b><br/>";
$remain = time() - $noi[0];
$idle = gettimemsg($remain);
$main.="$idle ago<br/>";
For example it says this message was sent 7 hours 8 seconds ago. Never says how many minutes tho.. any help will be greatful