php date problem

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

Post Reply
deepak
Forum Newbie
Posts: 2
Joined: Sat Mar 20, 2004 8:27 am

php date problem

Post by deepak »

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
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

[php_man]mktime[/php_man]
deepak
Forum Newbie
Posts: 2
Joined: Sat Mar 20, 2004 8:27 am

Post by deepak »

I have tried the mktime function but i dont know how to set it to current time + 15minutes?
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Post Reply