On another note: Looks like it's gonna be a long night. Just realized I need to make sure it's the same weekday as too (say "if it's between 22:00 and 23:00 and today is tuesday, then class = "class1").
Any idea on how I should do that? Tried changing
if ($hour > "22:00" && $hour < "23:50")
To
if ($hour > "22:00" && $hour < "23:50" && D == "Mon")
and
if ($hour > "22:00" && $hour < "23:50" && $D == "Mon")
but seems to have no effect..
I don't think this is doing what you think it is. That comparison is going to be interpreted as a string, and you can't compare strings that way.
Well, I have a table cell, see, and I want it to use a .css class that makes it all gold and shiny when the time is between 22:00 and 23:50, and when it's not in between those times, it will just be sad and gray. I tested it, and it worked. So I'm not really following you when you say that I can't do it, since I just did.
So, you're really just saying that 23:00:00 is more than 22:59:59? Obviously it is.
Why would I need to learn it from the start and completely, if I'm just making some tiny functions to supplement 99.999% HTML code a year? Using it as little as I am, I will remember as much of it when I need it as I do now when I need it and never knew it, if I ever learn it all.