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:

[biotype]

BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...

Download WebDNA Applications

WebDNA applications...

WebDNA Libraries

A list of available libraries for WebDNA...

WebDNA Modules

A list of the currently available modules...

F.A.Q

A compilation of some user's questions...

WebDNA reference

...

Related Readings:

Annoying character on writefile

How do I get rid of or convert the line feed character during a writefile?...

Calculating Standard Deviation

...

Do you hate updating the copyright notice at the bottom of all your pages?

It's January 1st and you have to update the copyright notice at the bottom of all your websites...

WebDNA Google Map Mashup

Generate a Google map with pins on your database addresses...

File upload example

...

random password-generator code

Generate a random alpha-numeric string...