Akopia Akopia Services

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

[mv] if-sql param



Hey,
 
I'm trying to compare two fields in a returned query to see if they are equal..I can't make it work..
 
It looks something like:
 
[query sql="select * from somewhere" list=1]
  [if '[sql-param field1]' eq '[sql-param field2]']
    do something
   [/if]
[/query]
 
This actually returns true ALL of the time..if I change 'eq' to 'ne' it's still true. Anyone know why?:) And what is the proper sytnax for this comparison? Using minivned 4.02
 
Nick

Search for: Match: Format: Sort by: