in reply to incorrect results

Well, it isn't very easy to see what your problem is, without a little more code and some decent <code> tag formatting. Taking a wild guess, though, I'd say you might try 'eq' when comparing your parameters, since they seem to be string values. As it is, you're comparing their numerical value with '=='.