![]() |
Looking for a solution, Have some code, but need a little more help!
*edit re added my problem, sorry for the confusion*
As mentioned in my introduction thread, I'm a designer and not a coder, but have started to expand into the coding thing. I have a use for calendar script and I wasnt sure where to start so after a bit of googling found a script released under GNU but it did not fit my purpose 100%. as it stood the script would display a calender and allow me to have a "free" day in one colour and a "busy" day in another, only I needed 3 colours for the free day. The code does write the calender out into a table, and the following is where the status is set. PHP Code:
PHP Code:
***Partial Solution*** Since this I have managed to get a partial solution which is to was to add in the following. PHP Code:
PHP Code:
I'm not sure this is the most effective way of achieving this but it works. |
Its generally a good idea to leave both the problem and solution in tact. Reason for that is if you had this problem, you are not the first or last, this thread could help someone else.
|
How about the following? It looks a little more elegant than a huge
switch statement. Village Idiot is also right; please do not remove your questions as it could well help other people in the future. |
Take it from me, probably the op of the longest talking to himself thread on TalkPHP, sometimes it helps to leave the question for your own purposes in addition to providing a resource for others. ;)
|
Yeah, I don't even know what the problem the OP was having?
|
Thanks for the replys. My sorry for removing it if I had been thinking a bit more clear I wouldn't of needed to post in the first place! :)
Original problem and how I solved it in the first post, if any one can recommend a better solution I'd be interested to see how it could be made better. |
Quote:
I don't see any right or wrong ways to do it....and it's simple enough... |
| All times are GMT. The time now is 05:00 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0