![]() |
![]() |
I had previously asked a question about how to display a set
of information only if the query returned actual results. I received an answer
telling me to do this:
[query sql="select * from foo" list=1]
[seti display][sql-code][/seti]
[if scratch display]
stuff only shows if query returned results
[/if]
[list]
query stuff
[/list]
[/query]
However, interestingly enough this doesn't seem to work. Upon
examining the contents of display..it actually contains the text "[sql-code]"
which suggests that it was never interpolated, maybe because the sql container
isn't valid yet. This is a problem:)
Does anyone have any other suggestions as to how to make this
work?
Nick
|