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 from retrieving the same record as the first search. I thought of doing it that way as well, but then I came up with a single-search solution that 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 Grome WebDNA Solutions http://www.hui.net/dna/webdna.html Associated Messages, from the most recent to the oldest:

    
  1. Re: two unique banners on one page (Kenneth Grome 1997)
  2. Re: two unique banners on one page (Grant Hulbert 1997)
  3. Re: two unique banners on one page (Kenneth Grome 1997)
  4. Re: two unique banners on one page (Grant Hulbert 1997)
  5. Re: two unique banners on one page (Olin 1997)
  6. Re: two unique banners on one page (Grant Hulbert 1997)
  7. Re: two unique banners on one page (Olin 1997)
  8. Re: two unique banners on one page (Daniel Cameron 1997)
  9. Re: two unique banners on one page (Daniel Cameron 1997)
  10. two unique banners on one page (Olin 1997)
>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 from retrieving the same record as the first search. I thought of doing it that way as well, but then I came up with a single-search solution that 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 Grome WebDNA Solutions http://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:

Emailer or [sendmail] questions ... (1998) [WebDNA] JSONStore Levels (2020) OK, here goes... (1997) Separate SSL Server (1997) Date Calulation (1997) [Price] (1997) Multiple prices (1997) Fed Ex Interaction (2003) refreshing IE with posted .tmpl (1997) Re:no [search] with NT (1997) How To Install (2003) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) emailer (1997) Basics of tcpconnect (2006) Just a thought (1998) b12 cannot limit records returned and more. (1997) [WebDNA] CICADA (2009) F2 to F3 rocky transition (1997) Back Button problems (1998) [subtotal] problems -- help? (1998)