Re: two unique banners on one page
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13379
interpreted = N
texte = >Well, just for those of you interested heres the final code I used, only>one database necessary:Hi Daniel,Good idea, using a variable to prevent the second search fromretrieving the same record as the first search. I thought of doing itthat way as well, but then I came up with a single-search solutionthat ought to work, too, although I haven't tested it:<--put this at the top of the page-->[search db=dbs/ad1.db &eqlivedatarq=Y&skusort=1&skusdir=ra&max=2]<--put this at the location of banner1-->[founditems][showif [index]=1][showif [website]!]
[/showif][showif [website]!][/showif][/showif][/founditems]<--put this at the location of banner2-->[founditems][showif [index]=2][showif [website]!]
[/showif][showif [website]!][/showif][/showif][/founditems]<--put this at the bottom of the page-->[/search]Sincerely, Ken GromeWebDNA Solutionshttp://www.hui.net/dna/webdna.html
Associated Messages, from the most recent to the oldest:
>Well, just for those of you interested heres the final code I used, only>one database necessary:Hi Daniel,Good idea, using a variable to prevent the second search fromretrieving the same record as the first search. I thought of doing itthat way as well, but then I came up with a single-search solutionthat ought to work, too, although I haven't tested it:<--put this at the top of the page-->[search db=dbs/ad1.db &eqlivedatarq=Y&skusort=1&skusdir=ra&max=2]<--put this at the location of banner1-->
[founditems][showif [index]=1][showif [website]!]
[/showif][showif [website]!][/showif][/showif][/founditems]<--put this at the location of banner2-->
[founditems][showif [index]=2][showif [website]!]
[/showif][showif [website]!][/showif][/showif][/founditems]<--put this at the bottom of the page-->[/search]Sincerely, Ken GromeWebDNA Solutionshttp://www.hui.net/dna/webdna.html
Kenneth Grome
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Proposed FormVariables hierarchy (2000)
[taxRate] [TaxTotal] ? (1997)
Modifying databases manually (was Banner DNA) (1997)
W* 4.2 / WebCat (TPro) 3.0.5b / OS 8.5.1 / BW G3 (2000)
Multiple prices (1997)
multi-paragraph fields (1997)
Where is f2? (1997)
[WebDNA] Rewrite url (2013)
my price won't move (1997)
Press Release hit the NewsWire!!! (1997)
HELP WITH DATES (1997)
shipping costs (2000)
[LOOKUP] (1997)
WebCat2.0 [format thousands .0f] no go (1997)
File Format Validation (2005)
WCS Newbie question (1997)
Webcat/Webmerchant part II (1998)
[WebDNA] WebDNA DE purchase (2008)
[WebDNA] MD5 encryption (2011)
problems with 2 tags (1997)