oneofayykind Posted November 10, 2008 Share Posted November 10, 2008 There is a calendar I integrated into my website and you can add events to it. What I would like to do is list the upcoming events underneath it. I would like to only list the upcoming events for the month. A sample of what I'm talking about can be listed at http://wpcal.firetree.net/ The events from my calendar are written to a mysql database. I would appreciated help on this if anyone has any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/132085-upcoming-events-help/ Share on other sites More sharing options...
trq Posted November 10, 2008 Share Posted November 10, 2008 We need to see code, and you will need to describve your actual problem. Were not here to simply write code for people. Quote Link to comment https://forums.phpfreaks.com/topic/132085-upcoming-events-help/#findComment-686409 Share on other sites More sharing options...
oneofayykind Posted November 10, 2008 Author Share Posted November 10, 2008 Just curious if someone could point me in the right direction. Don't want someone to write the code for me just tell me what I should be using. I got the calendar from Easy PHP Calendar I just want to be able to take the events added to the mysql database and show this months events underneath the calendar. Quote Link to comment https://forums.phpfreaks.com/topic/132085-upcoming-events-help/#findComment-686426 Share on other sites More sharing options...
corbin Posted November 10, 2008 Share Posted November 10, 2008 http://php.net/mysql_query http://php.net/mysql_fetch_assoc http://www.w3schools.com/PHP/php_mysql_intro.asp http://www.tizag.com/mysqlTutorial/ Quote Link to comment https://forums.phpfreaks.com/topic/132085-upcoming-events-help/#findComment-686471 Share on other sites More sharing options...
revraz Posted November 11, 2008 Share Posted November 11, 2008 Kinda hard to explain, but here is my logic i use. First load in the month's events as the page loads, into an array. Then as you print each day in the calendar, check the array for the same day as you are printing and see if there are any events, if so, print them, if not, go to the next day. Just curious if someone could point me in the right direction. Don't want someone to write the code for me just tell me what I should be using. I got the calendar from Easy PHP Calendar I just want to be able to take the events added to the mysql database and show this months events underneath the calendar. Quote Link to comment https://forums.phpfreaks.com/topic/132085-upcoming-events-help/#findComment-687886 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.