Rudinsky Posted March 22, 2011 Share Posted March 22, 2011 I have a family site with a member list and a forum that both run on MySql. One of the items in the member list is the birthday. What I like to achieve is that a day or 2 before a member's birthday, a post wil be automaticly inserted in the forum, (a post that contains that this persons birthday is comming up in a few days) without any user input. I like to have this done automaticly because I don't feel like setting up a cron job for every member seperatly. There are just too many members. What I need is a script that will create a cron job or something simular the moment a new member registers and updates his profile and sets his birthday. Link to comment https://forums.phpfreaks.com/topic/231377-how-do-i-set-a-cron-job-by-user-input-and-mysql/ Share on other sites More sharing options...
trq Posted March 22, 2011 Share Posted March 22, 2011 Why would you need multiple cron jobs? Just create 1 cron job that executes daily checking for members birthdays. Link to comment https://forums.phpfreaks.com/topic/231377-how-do-i-set-a-cron-job-by-user-input-and-mysql/#findComment-1191063 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.