I would like to make a booking application one field there is date and time for example: long time of booking and reservations
date of booking : 18-12-2013 15:30:00 And long booking : 6 hours
And the result will be 18-12-2013 21:30:00
what if the date of the message and the old order. hours ended up being 0:30. it's already changed the day or date.
date of booking : 18-12-2013 20:30:00 And long booking : 5 hours
And the result will be 18-12-2013 01:30:00
how to implement it in PHP?
sorry i'm still newbie :-)
my php code
$date_booking = $_POST['datebooking'];
$long_time = $_POST['long']; // its contents were 1, 2, 3, 4, and so on
$result = strtotime($date_booking) + $longtime;