richcleverley
MIS
Hi all,
don't know if anyone out there can help but I am a bit stumped.
I am developing a rental website for multiple properties and need an availability calendar for the properties. The client side of the calendar is fine and works (it takes booking details for certain days out of a mysql database). What I am having problems with is creating the admin side of it where renters can update their properties availability. At the moment for testing purposes I have entered details into the mysql manually using phpmyadmin.
What I want is a full year or month to be displayed and for the owner to be able to tick radio boxes for each day, submit the data (by month or maybe year - not decided yet) and for that data to be written to the database.
I reckon I need to dynamically create the option name so it is something like 20060503 - ie todays date YYYY/MM/DD.
Anyone know how I could then get the script to automatically parse the form, getting the option name and then inserting either U or B (unavailable or booked) into the database which is set up as a mysql date field (which would be the option name) and an option field which is an enum of U or B.
Thanks
Richard
don't know if anyone out there can help but I am a bit stumped.
I am developing a rental website for multiple properties and need an availability calendar for the properties. The client side of the calendar is fine and works (it takes booking details for certain days out of a mysql database). What I am having problems with is creating the admin side of it where renters can update their properties availability. At the moment for testing purposes I have entered details into the mysql manually using phpmyadmin.
What I want is a full year or month to be displayed and for the owner to be able to tick radio boxes for each day, submit the data (by month or maybe year - not decided yet) and for that data to be written to the database.
I reckon I need to dynamically create the option name so it is something like 20060503 - ie todays date YYYY/MM/DD.
Anyone know how I could then get the script to automatically parse the form, getting the option name and then inserting either U or B (unavailable or booked) into the database which is set up as a mysql date field (which would be the option name) and an option field which is an enum of U or B.
Thanks
Richard