Where XXX but NOT yyy

3 posts by 2 authors in: Forums > CMS Builder
Last Post: May 31, 2016   (RSS)

By kitsguru - May 31, 2016

If type is text, the value needs to be quoted. Set debugSQL true to see the generated query.

Jeff Shields

By Toledoh - May 31, 2016

Thanks Jeff.  That boosted me enough to get it:

'where'       => 'type = '.$peopleRecord['type'].' AND '.'num != '.$peopleRecord['num'],

Cheers,

Tim (toledoh.com.au)