I’m creating a website and I think it might be cool if I do this…
You see the calendar on the availability page,
http://www.ontheocean.us/avail.shtml
What ?I want to do is make everything inside that fieldset dynamic.
I think I’m on the right track but want your guys input…
First ill create a table like this.
CREATE TABLE Availability (
id INT(5) NOT NULL PRIMARY KEY AUTO_INCREMENT,
display TINYINT(1),
year INT(4)
month INT(2),
open TINYINT(1),
cost VARCHAR(10)
)
then I can decide whether to display the calendar (0 or 1)
show the year (to go in the <legend>)
have the numerical value for month (1-12, Ill convert it to January… later)
determine if the condo is even available to be renter (0,1 to mean not open, open)
and finally determine the cost for that month.
This way I think I can make changes on the fly and will be a little more user friendly (if someone stupid want to enter in/update the Availability thing.