Hi Guys,
OK, a start time is stored in my database as follows:
12:00:00 meaning 12pm Midday.
To make it say 12:00pm I simply use the following code:
echo date("g:i a", strtotime($r['start_time']));
Now the customer can select the finish time by selecting how many hours,
So a start time is 20:00:00 and the customer works our 5 hours the finish time will be 01:00:00 (1:00am).
How do I add the amount of hours to my allready exising time?
By the way the following doesn't work:
echo date("g:i a", mktime(date("h", strtotime($r['start_time']))+$hours, 0, 0, 0, 0, 0));
Can anybody help?