Page 1 of 1

Adding / Modifying WHERE clause

Posted: 2020-04-22 14:41
by dlee
I am new to Appgini, love it so far. I need some guidance as to how to either modify or add a WHERE clause to a tables sql statement. So any help with this would be greatly appreciated.

Thanks,
TD

Re: Adding / Modifying WHERE clause

Posted: 2020-04-22 16:09
by dlee
I found this, $options->QueryWhere = 'WHERE ... and this seems to be the answer.

My final code is:
$options->QueryWhere = 'WHERE `inspections`.`dept_id` = '.$dept_id;

TD