chanchelkumar Posted September 8, 2007 Share Posted September 8, 2007 Hi friends, I am working with a reminder... I want to get an action on the DATE OF BIRTH feild... how can i get the action for the servertime to start the PHP page to run the query for update the age to the database ... Help me.. Thanks in advance.. Quote Link to comment https://forums.phpfreaks.com/topic/68471-birthday-reminder/ Share on other sites More sharing options...
chanchelkumar Posted September 10, 2007 Author Share Posted September 10, 2007 Help me!!!!!!!!! Still in da problem Quote Link to comment https://forums.phpfreaks.com/topic/68471-birthday-reminder/#findComment-345139 Share on other sites More sharing options...
tippy_102 Posted September 10, 2007 Share Posted September 10, 2007 $day = 01; // Day $month = 01; // Month $year = 2008; // Year echo ("There are " . (int)((mktime (0,0,0,$month,$day,$year) - time(void))/86400) . " days until & $month, $day, $year"); Quote Link to comment https://forums.phpfreaks.com/topic/68471-birthday-reminder/#findComment-345150 Share on other sites More sharing options...
chanchelkumar Posted September 14, 2007 Author Share Posted September 14, 2007 i want to run a script without loading a page by time (SERVER TIME) Any help... Quote Link to comment https://forums.phpfreaks.com/topic/68471-birthday-reminder/#findComment-348181 Share on other sites More sharing options...
hackerkts Posted September 14, 2007 Share Posted September 14, 2007 Use Cron Job Quote Link to comment https://forums.phpfreaks.com/topic/68471-birthday-reminder/#findComment-348186 Share on other sites More sharing options...
redarrow Posted September 14, 2007 Share Posted September 14, 2007 cron Quote Link to comment https://forums.phpfreaks.com/topic/68471-birthday-reminder/#findComment-348187 Share on other sites More sharing options...
chanchelkumar Posted September 14, 2007 Author Share Posted September 14, 2007 Cron Job????? What is that??? Am a newbie !!! please help me.... Any reference site?? Quote Link to comment https://forums.phpfreaks.com/topic/68471-birthday-reminder/#findComment-348240 Share on other sites More sharing options...
redarrow Posted September 14, 2007 Share Posted September 14, 2007 do it with my sql it easy here you go. select date_format( date, "%d/%m" ), DAYOFYEAR( CURDATE( ) ), DAYOFYEAR( date ) from table where DAYOFYEAR( date ) between DAYOFYEAR( CURDATE( ) ) - 15 and DAYOFYEAR( CURDATE( ) ) + 15 order by date_format( date, "%d/%m/%Y" ) CRON windows version. link. http://cronw.sourceforge.net/ linux version link http://troy.jdmz.net/cron/ Quote Link to comment https://forums.phpfreaks.com/topic/68471-birthday-reminder/#findComment-348245 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.