karatekid36 Posted January 17, 2008 Share Posted January 17, 2008 I have a table of event that I would love to have displayed in a calendar where the title of the event is listed in the calendar square of the respective day. I can generate the calendar dynamically using php, but I am unsure how to get the dates into a calendar at all with the dates of the calendar and the date of the event matching. If anyone has any ideas or examples, it would be greatly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/86408-solved-event-calendar/ Share on other sites More sharing options...
p2grace Posted January 17, 2008 Share Posted January 17, 2008 Like you said, first you create an event calendar system where all it does is generate the calendar with the dates respectively. Once you've done that, for each date you'd check if it falls between the start date and end date of an event. If it does display the event. Quote Link to comment https://forums.phpfreaks.com/topic/86408-solved-event-calendar/#findComment-441547 Share on other sites More sharing options...
karatekid36 Posted January 17, 2008 Author Share Posted January 17, 2008 I 100% agree, but another problem I am having is that I have only generated calendars in the past where it just adds days until the counter reaches that max value I allow it. As of this minute, I can not envision a way to do it so that I would be able to have a query in each calendar day(obv using a loop or a while), but I have seen these types of calendars everywhere. Quote Link to comment https://forums.phpfreaks.com/topic/86408-solved-event-calendar/#findComment-441570 Share on other sites More sharing options...
AndyB Posted January 17, 2008 Share Posted January 17, 2008 http://www.digitalmidget.com/php_noob/calendar.php If that's any help, it's a free download. Quote Link to comment https://forums.phpfreaks.com/topic/86408-solved-event-calendar/#findComment-441578 Share on other sites More sharing options...
revraz Posted January 17, 2008 Share Posted January 17, 2008 I know you've sent me a few PMs about this, and I'm not really willing to share the script I worked on only because I'm selling it. But what I did was just load the entire month's events into an array and just echo'd it out for each day as I built the calendar layout. Quote Link to comment https://forums.phpfreaks.com/topic/86408-solved-event-calendar/#findComment-441604 Share on other sites More sharing options...
karatekid36 Posted January 17, 2008 Author Share Posted January 17, 2008 I appreciate the honesty, I am in the same spot. I am making this in the hopes of being able to turn it into a large scale membership systems for some of the local yacht clubs and organizations of that nature near where I live. Your solution seemed perfect, but I will just have to work with the array one my own I guess. Have a good one. Quote Link to comment https://forums.phpfreaks.com/topic/86408-solved-event-calendar/#findComment-441743 Share on other sites More sharing options...
adam291086 Posted January 17, 2008 Share Posted January 17, 2008 This is a hard one and there isn't many tutorials out there. There are plent of calendar tutorials but not many event ones. It took me a while to work out how to do mine. Get a simple calendar script working and learn how it works. Then we can help push you in the right direction of adding in the events Quote Link to comment https://forums.phpfreaks.com/topic/86408-solved-event-calendar/#findComment-441745 Share on other sites More sharing options...
karatekid36 Posted January 18, 2008 Author Share Posted January 18, 2008 I think I can modify Andy B's to meet my needs. Great Work on that code. I can edit this for my needs. Thank you all. Quote Link to comment https://forums.phpfreaks.com/topic/86408-solved-event-calendar/#findComment-442849 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.