Hi!
In my LinksSQL every link has two special dates, one is begin_showing, the other is end_showing. That means, the link should only be shown on my page, if I'm in the period between the day of begin_showing and the day of end_showing.
But why does for example this not work: <%if begin_showing eq date%>
If it is written on the screen, both variables are exactly the same, but the result of the if-Statement is false, and it runs over the if and not in it.
In order to compare if the actual day is in this period, I would like to do this (in pseudo-code)
if (date >= begin_showing AND date <= end_showing) OR (if not begin_showing AND if not end_showing)
=> Either it is in the selected period or no begin-and ending-dates are given.
How can I do this?? Thanks, Tina
In my LinksSQL every link has two special dates, one is begin_showing, the other is end_showing. That means, the link should only be shown on my page, if I'm in the period between the day of begin_showing and the day of end_showing.
But why does for example this not work: <%if begin_showing eq date%>
If it is written on the screen, both variables are exactly the same, but the result of the if-Statement is false, and it runs over the if and not in it.
In order to compare if the actual day is in this period, I would like to do this (in pseudo-code)
if (date >= begin_showing AND date <= end_showing) OR (if not begin_showing AND if not end_showing)
=> Either it is in the selected period or no begin-and ending-dates are given.
How can I do this?? Thanks, Tina