[thelist] ASP Problem - Pulling schedules items in a loop?

Ken Schaefer Ken at adOpenStatic.com
Sat Jun 2 00:38:34 CDT 2007


Hi Jon,

Could you explain exactly what you're trying to accomplish? When you say "how
do I pull ALL of these?" - all of what, exactly?

Cheers
Ken

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Jon Hughes
Sent: Saturday, 2 June 2007 9:50 AM
To: thelist at lists.evolt.org
Subject: [thelist] ASP Problem - Pulling schedules items in a loop?

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,
 



More information about the thelist mailing list