How to get rid of very long search strings
numero = 50[text]blah=[lookup etc...][/text][text]blahblah=[lookup etc...][/text][search db=some.db&[!] [/!]eqFIELDNAMEdatarq=[url][blah][/url]&[!] [/!]geFIELDNAME2datarq=[url][blahblah][/url]&[!] [/!]FIELDNAME2type=num&[!] [/!]asFIELDNAME2sort=1&[!] [/!]etc[!] [/!]] [founditems][fields_from_found_records] [/founditems][/search]Lookup your variables beforehand, then feed them into your search for cleaner, easier to read code. I also use the comment tags ([!] and [/!]) to hide linebreaks in order to make the search string easier to read.
[text]blah=[lookup etc...][/text]
[text]blahblah=[lookup etc...][/text]
[search db=some.db&[!]
[/!]eqFIELDNAMEdatarq=[url][blah][/url]&[!]
[/!]geFIELDNAME2datarq=[url][blahblah][/url]&[!]
[/!]FIELDNAME2type=num&[!]
[/!]asFIELDNAME2sort=1&[!]
[/!]etc[!]
[/!]]
[founditems]
[fields_from_found_records]
[/founditems]
[/search]
DOWNLOAD WEBDNA NOW!
A compilation of some user's questions...
Tips and TricksA list of user-submitted tips ...
Technical Change HistoryThis Technical Change History provides a reverse chronological list of WebDNA changes...
WebDNA ModulesA list of the currently available modules...
WebDNA LibrariesA list of available libraries for WebDNA...
AWS Raw WebDNA LAMP-Plus WebServerAmazon Web Services (AWS) README for Machine Image ID...
Use ImageMagick to manipulate images when you upload them...
WebDNA interaction with zipI have a project where I'm allowing several people to upload images...
Write Once Use ManyReuse the same code over and over again on your site with the [include] context...
Annoying character on writefileHow do I get rid of or convert the line feed character during a writefile?...
Calculating Standard Deviation...
Spaghetti codeHow to get rid of very long search strings...