[thelist] ASP Problem - Pulling schedules items in a loop?
Jon Hughes
hughesj at firemtn.com
Fri Jun 1 18:50:15 CDT 2007
I have the following code in my schedule .asp file:
startdate=DateValue("5/29/2007")
enddate=DateValue("5/30/2007")
if date() >= StartDate and date() <= EndDate or showall = "1" then
imgLink = "http://www.mysite.com/mylink1.asp"
imgSrc = url & "img/this.jpg"
end if
startdate=DateValue("5/31/2007")
enddate=DateValue("6/1/2007")
if date() >= StartDate and date() <= EndDate or showall = "1" then
imgLink = "http://www.mysite.com/mylink2.asp"
imgSrc = "img/that.jpg"
end if
These are obviously scheduled in another file that displays the one that
is currently active.
My questions is: How do I pull ALL of these? I was hoping by having
that "or showall = "1"" would help, but even with showall, it will just
overwrite the variables.
One thing: I don't want to use different variables for each entry.
There are MANY entries.
Thanks,
- Jon
More information about the thelist
mailing list