This project is read-only.

variable inputs of WHERE method

Jan 8, 2013 at 8:19 AM

I have a question like following codes. Please see the $var variable

$array = array(1,2,3,4);
$var = 2;

 $output = from('$it')
->where('$it=>$it == $var')

It throws an Exception, Undefined variable: var

is kind of query available in the framework?

Thank you.

Jan 8, 2013 at 8:32 AM

i got a tip: we can replace $var text by the value :D