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:
HELP WITH DATES (1997)
RE: How to verify email address (1997)
Problems appending to database (1997)
Re:Webmessage Hyperboard (1998)
Opinion: [input] should be called [output] ... (1997)
Database Options (1997)
Extended [ConvertChars] (1997)
Emailer setup (1997)
WebCat2 Append problem (B14Macacgi) (1997)
OH MY GOD! (1998)
Possible Hijacking from Globix (2002)
Nested tags count question (1997)
Webcat table size. (2001)
WebCommerce: Folder organization ? (1997)
WC2b15 File Corruption (1997)
Stinkin' [Referrer] (1998)
Limitations on fields? Server is crashing (1997)
[WebDNA] Function "libraries" (2009)
[URL] around a [sendmail] recipient? - SEARCHING: command vs. context (2000)
Explorer 3.0/ Access Denied! (1997)