PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
deepak
Forum Newbie
Posts: 2 Joined: Sat Mar 20, 2004 8:27 am
Post
by deepak » Sat Mar 20, 2004 8:27 am
Hi everyone, im working on my university project and have been facing the following problem:
i use the following line to get the current time:
$todaytime=date("H:i:s");
What i want to do is add 15minutes to this time?????
The main outcome is for a SQL statment so show all the bookings within the next 15 minutes
Thanks in advance for all your help
regards
Deepak
patrikG
DevNet Master
Posts: 4235 Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK
Post
by patrikG » Sat Mar 20, 2004 8:35 am
[php_man]mktime[/php_man]
deepak
Forum Newbie
Posts: 2 Joined: Sat Mar 20, 2004 8:27 am
Post
by deepak » Sat Mar 20, 2004 8:38 am
I have tried the mktime function but i dont know how to set it to current time + 15minutes?
patrikG
DevNet Master
Posts: 4235 Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK
Post
by patrikG » Sat Mar 20, 2004 8:44 am