Page 1 of 1

Two values to determine database results

Posted: Fri Jan 18, 2013 1:16 pm
by Kirk Wilson

Hello,

I have a database set up and I wish to display results based on user input. The input is determined by two drop downs selectors. I can display the results based on the first selector value but my question is how can I display results based on the two values from both drop downs.

I am using

return '{"columnOne":"'+value+'"}';

I guess what I am asking is how to insert a AND command into this so that the results are based of two values.

I hope that makes sense and thanks for any help you can provide.


Two values to determine database results

Posted: Fri Jan 18, 2013 2:28 pm
by Maryna Brodina

Hello! Here is an example
{"columnOne":"'+value1+'" , "columnTwo":"'+value2+'" }';

This should help http://docs.tiggzi.com/documentation/...


Two values to determine database results

Posted: Fri Jan 18, 2013 3:24 pm
by Kirk Wilson

Thanks a lot that was the kind of reference page I was looking for, I cant believe I missed it.