A challenge because I am struggling !
I am writing a booking system. I want a page showing the state of bookings over the next 12 months from this month. The first calendar being 'this month' whatever month that may be.
I can easily write a month calendar but when I try to do 12 months the page gets slow.
I first tried putting an image of a grid of 12 little calendar frames using absolute positioning.
and filling each cell by painting the required data into it using PHP echo statements, again of course using absolute positioning. This is the fastest so far but quite tricky to get the positioning exactly right...and how will it behave on other computers using other browsers ?
I then tried echoing each html code for a table by PHP for each little calendar, and for some reason this was very slow. (But the layout was easier and should fit other browsers).
Since I have all the information about bookings on the database, including dayNames, dates etc why don't I try to put one database record to construct one cell on screen. OK the months need odd blanks to take up the fact that we dont have equal months. Include those blanks as records on the database as well. I don't care how complex and slow the database is to fill as this is done one record at a time.
Any simple suggestions from clever people welcomed!!
Thanks
--
Dave
I am writing a booking system. I want a page showing the state of bookings over the next 12 months from this month. The first calendar being 'this month' whatever month that may be.
I can easily write a month calendar but when I try to do 12 months the page gets slow.
I first tried putting an image of a grid of 12 little calendar frames using absolute positioning.
and filling each cell by painting the required data into it using PHP echo statements, again of course using absolute positioning. This is the fastest so far but quite tricky to get the positioning exactly right...and how will it behave on other computers using other browsers ?
I then tried echoing each html code for a table by PHP for each little calendar, and for some reason this was very slow. (But the layout was easier and should fit other browsers).
Since I have all the information about bookings on the database, including dayNames, dates etc why don't I try to put one database record to construct one cell on screen. OK the months need odd blanks to take up the fact that we dont have equal months. Include those blanks as records on the database as well. I don't care how complex and slow the database is to fill as this is done one record at a time.
Any simple suggestions from clever people welcomed!!
Thanks
--
Dave