Page 4 of 4

Using ?WHERE= in URL database call

Posted: Wed Jan 29, 2014 11:31 am
by Bad Addy

I have posted the script within the project, under Javascripts. To see if I can call the service, and return the results to the website. But it seems I cannot do this ? But the code I use on the site is the same as whats get_source_Questions


Using ?WHERE= in URL database call

Posted: Wed Jan 29, 2014 5:56 pm
by Bad Addy

I really needs some assistance with this.

The code can be found within the app under javascripts- get_source_Questions.

It does give me the rows where sid = 6


Using ?WHERE= in URL database call

Posted: Wed Jan 29, 2014 6:43 pm
by Kateryna Grynko

Hi.

Use the following code:prewhere: '{"sid":6}'/preSo if you have a variable 'sid' you can add it here:prewhere: '{"sid":'+sid+'}'/pre


Using ?WHERE= in URL database call

Posted: Wed Jan 29, 2014 7:32 pm
by Bad Addy

perfect, thank you :)