Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

[mv] Query usage



Hey,
 
I'm wanting to have some HTML that only shows up if a particular query returned something. For example:
 
[query sql="select * from foo" list=1]
heres some stuff that should only show up in the query
[list]
[sql-param something]
[/list]
[/query]
 
I had hoped that the method above would achieve this, however...the text within the query tag is parsed and used even if the query itself was empty. Is there some way to determine how many rows a query returned to encapsulate this within some sort of conditional expression?
 
Nick

Search for: Match: Format: Sort by: