Ark del KAOS
05-28-2008, 03:55 AM
This is the code...
<if condition="$post['field18'] == 'TEXT-'">
CODE A
<else />
<if condition="$post['field18'] == 'TEXT-B'">
CODE B
<else />
<if condition="$post['field18'] == 'TEXT-C'">
CODE C
<else />
<if condition="$post['field18'] == 'CODED'">
CODE D
<else />
......
It's like this, but so many times more. Around 50 times.
When I first think of this...well, I think it'll make only one DB call for $post['field18'], and then compare the results with the IF possibilities.
But maybe not.
If I do this...I'm cutting my own throat? O o''
(If it's one db call for every one posibility....YES IT IS :eek:)
Maybe it's too obvious, but...well....I need to know it :) Sorry!
And thanks!
<if condition="$post['field18'] == 'TEXT-'">
CODE A
<else />
<if condition="$post['field18'] == 'TEXT-B'">
CODE B
<else />
<if condition="$post['field18'] == 'TEXT-C'">
CODE C
<else />
<if condition="$post['field18'] == 'CODED'">
CODE D
<else />
......
It's like this, but so many times more. Around 50 times.
When I first think of this...well, I think it'll make only one DB call for $post['field18'], and then compare the results with the IF possibilities.
But maybe not.
If I do this...I'm cutting my own throat? O o''
(If it's one db call for every one posibility....YES IT IS :eek:)
Maybe it's too obvious, but...well....I need to know it :) Sorry!
And thanks!