Spaghetti code

How to get rid of very long search strings

numero = 50
interpreted = N
texte = 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]
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!

Top Articles:

AWS Raw WebDNA LAMP-Plus WebServer

Amazon Web Services (AWS) README for Machine Image ID...

Tips and Tricks

A list of user-submitted tips ...

WebDNA Libraries

A list of available libraries for WebDNA...

WebDNA Modules

A list of the currently available modules...

WebDNA reference

...

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

Related Readings:

Handling credit card numbers

Encrypting the credit card numbers does the job quite nicely...

How old am I?

You want to express an age in years given the dob (mm/dd/yyyy) and today's date...

Hideif on IP range

This will show or hide stuff according to the IP...

Write Once Use Many

Reuse the same code over and over again on your site with the [include] context...

Formatting a long list in a table

How to show the result of a search as a table...

Calculating Standard Deviation

...