Web Hosting Talk







View Full Version : Answering time


DjMiX
05-16-2005, 09:40 AM
Hello all,

I would like to add a mod to my support ticket script:

just to add a text that says, depending on the actual time, in how much time we answer.

For example, if the actual time is 1am to 9am, it says, on my index.php: We currently take ~ 3 hours to answer. If the actual time is 9am to 22pm, it says, on osticket: We currently take ~ 1 hour to answer. And if the day is either a Saturday or a Sunday, it says that we take ~ 4 hours to reply.

Would this be possible ? If yes, could anyone code a simple script for me ? I would be very thanskfull

Regards,

Dj.

recipher
05-16-2005, 10:14 AM
I can't help you with the script, but, here is all you need. I'm assuming that your database will have a timestamp of when the support ticket was entered and when the ticket is closed. All you have to do is find the time between these two.

I'm assuming that you are using php

http://www.michaelhorowitz.com/php/datediff.php

DjMiX
05-16-2005, 10:34 AM
Actually, I am not looking for a script that would take just for a single ticket. I would like to put the script on my homepage.

Googled
05-16-2005, 12:30 PM
Yes it is possible and not really hard to accomplish.

Now if you're looking for someone to make you this script, you should think asking in Employment Offers and Requests (http://www.webhostingtalk.com/forumdisplay.php?forumid=33) you may get better results.