I run a band website and I want to display the next gig automatically.
For example
i want it to say "next gig - 17th june..." when the 17th june passes it will change to say "next gig - 20th june..."
I have never used ASP before and have only tried looking at some tutorial sites. This is what I have come up with very quickly.
<% if day(now)/month(now) = 17/6 then %>
Today
<% end if
day(now)/month(now) <= 17/6) then %>
17th June
<% end if
day(now)/month(now) >= 17/6) then %>
20th June
<% end if %>
I've put this in an HTML style document and saved it as ASP and uploaded it. Although the file is on the server when I try to view it I get a "The page cannot be displayed" message.
Could someone please let me know why Im getting this message, and tell me about any errors in the above code.
Many Thanks!