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:

Download WebDNA Applications

WebDNA applications...

WebDNA Modules

A list of the currently available modules...

AWS Raw WebDNA LAMP-Plus WebServer

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

WebDNA Libraries

A list of available libraries for WebDNA...

[biotype]

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

Technical Change History

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

Related Readings:

Database backup

How to make a backup of your databases...

How to keep the text variable after a function has finished

By default...

File upload example

...

Extracting the first sentence out of a block of text

I need to extract the first sentence out of a block of text...

Setting a 30-minute Cookie

Configuring the expires time for a short-term cookie is tricky...

ImageMagick

Use ImageMagick to manipulate images when you upload them...