[append db=] snippet

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50961
interpreted = N
texte = Here's a silly one that I should of written a long time ago, many of you probably already have, but for the others:Ever find yourself doing a lot of copy/paste with the names of your database fields into a large [append db=..] in the fashion of:[append db=somedatabase.db][!] [/!]sku=[url][sku][/url][!] [/!]&something=[url][something][/url][!] etc.... [/!][/append]?Well, pop this snippet into an html named buildIt.html in the same folder as your database (requires a .hdr file) and then run it:
Name of the Database: Name of the .hdr file for this database: [showif [hasRun]=T]

Here's your output:

[raw][append db=[/raw][strDatabase][raw]][!][/raw]
[ListWords Words=[include file=[theHdr]]&Tabs=T] [raw][/!][/raw][hideif [index]=1]&[/hideif][word][raw]=[url][[/raw][word][raw]][/url][!][/raw]
[/ListWords][raw][/!][/append][/raw] [/showif]
Hope someone finds it useful!GK ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. [append db=] snippet (Gary Krockover 2003)
Here's a silly one that I should of written a long time ago, many of you probably already have, but for the others:Ever find yourself doing a lot of copy/paste with the names of your database fields into a large [append db=..] in the fashion of:[append db=somedatabase.db][!] [/!]sku=[url][sku][/url][!] [/!]&something=[url][something][/url][!] etc.... [/!][/append]?Well, pop this snippet into an html named buildIt.html in the same folder as your database (requires a .hdr file) and then run it:
Name of the Database: [input][/Input]> Name of the .hdr file for this database: [input][/Input]> [showif [hasRun]=T]

Here's your output:

[raw][append db=[/raw][strDatabase][raw]][!][/raw]
[ListWords Words=[include file=[theHdr]]&Tabs=T] [raw][/!][/raw][hideif [index]=1]&[/hideif][word][raw]=[url][[/raw][word][raw]][/url][!][/raw]
[/ListWords][raw][/!][/append][/raw] [/showif]
Hope someone finds it useful!GK ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Gary Krockover

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:

Methods of protecting "invoice page" (2003) [WebDNA] Fwd: Creating Dynamic Content based on your subdomains (2020) Lost and Recovered. (1998) WebCat2.0 acgi vs plugin (1997) Authenticate (1997) Webcat vs Tango (2000) Wanted: Broader string manipulation functions (1997) WebDNA problem (2006) Bug? (1997) Banners (1997) Snake Bites (1997) change the number format (1997) Emailer (WebCat2) (1997) search zip codes ranges (2003) [WebDNA] preventing hackers from posting their own (altered) (2009) Questions (1998) off topic - dna snipets (1997) [OrderFile] error (1999) Erotic Sites (1997) WCS Newbie question (1997)