Hi all. I have a calendar with the code below. It is code that I found on the php site that I've slightly modified thus far, however, I'm currently stuck trying to add a feature, and everything I've done has only caused the code to quit working!
What I need to do with this code is to add the ability for users to click on a date, and on the click it will add his/her user id (which is stored as a variable when they log in) into the corresponding date column in a table that we'll call "availability."
So, the problems I need help with....and hopefully someone can help me on this....are:
1) Modification of the code such that when a date is clicked on, it will add the user id to the proper table in the database.
2) How would I best set up the database to save the user id? Do I need to do in and create a table with 365 columns (2005Jan1, 2005Jan2, etc), or is there a way to further modify the code so that it creates the table automatically?
The calendar thus far can be seen at http://refphotos.com/calendar1.php
Thank you VERY VERY much for your help!
The line of code that controls the url link for each date on the calendar is below, what do I need to do to change it so that when it is clicked on, instead of going to a page that displays that date, it will instead add the users ID# to the table under the proper date?
$myCal["url_day"] = "availability.php?var=value";