Last Repy..
Posted: Mon Sep 10, 2007 3:10 pm
Hi,
I am a newbie to PHP but currently in the process of building a support center. I have the basics up and running such as read ticket, reply to ticket, close ticket and search. Now, I am trying to get a last reply line in the ticket details area.
In the database I have a field called last_reply. I would like to be able to create a lastreply function that would calculate how long ago the reply was made.
Eg. year, month, day, hour, min, secs.
What I want from the functionality is that if it is only seconds then just display "22 sec(s)" or "3 hour(s) 4 min(s) 17 sec(s)"
Any light that anyone could share so I can create the function would be great.
Thank you,
John
PS. I am sorry if I have posted this in the wrong section of the forum. Let me know and will move it to the correct forum section. Thanks for your help.
I am a newbie to PHP but currently in the process of building a support center. I have the basics up and running such as read ticket, reply to ticket, close ticket and search. Now, I am trying to get a last reply line in the ticket details area.
In the database I have a field called last_reply. I would like to be able to create a lastreply function that would calculate how long ago the reply was made.
Eg. year, month, day, hour, min, secs.
What I want from the functionality is that if it is only seconds then just display "22 sec(s)" or "3 hour(s) 4 min(s) 17 sec(s)"
Any light that anyone could share so I can create the function would be great.
Thank you,
John
PS. I am sorry if I have posted this in the wrong section of the forum. Let me know and will move it to the correct forum section. Thanks for your help.