How can I add more time to a time string from a database
example:
$getfrom_database = "10:12 am";
Id like to add 5 mins to that time
$try = mktime(date("g"), date("i")+5, date("a"));
??
I think this should work for you
SELECT "1997-12-31 23:59:59" + INTERVAL 5 MINUTE;
There are loads more examples at http://www.mysql.com/doc/en/Date_and_time_functions.html
Hope this helps
thanx for the help but I think I got it..
$hour = date("g"); $min = date("i"); $ampm = date("a"); $hour.":".($min + 5)." ".$ampm