Quote:
Originally Posted by Old Pedant
Wait a minute!!!
pic[0] isn't legal VBScript code!
And you can't use %> (or <%) any place *except* in ASP pages.
What the heck are you doing here???
|
Hi Old Pedant, thx for responding.
I have an ASP file and I needed to make a kind of banner. Which I found some code which is as a script
Code:
<script>.....</script>
As it is static I wanted to connect it in a way to a table so that I can dynamically change the content of the banners.
And the only part I have to change is o make it from this
Code:
pic[0] = new banner('//192.168.100.1/offers/offer.jpg',102,'//192.168.100.1/offer.asp')
to something like
Code:
pic[0] = new banner('"&rr&"',102,'"&zz&"')
where rr and zz are data taken form a DB using SELECT
So maybe to make my question simpler: Is there a way where I take data for a Db using SELECT, and than "THAT" data put it in a variable in a a script? For using it.
Thx already!