since my last question in SO, I've been reading a bit about how to prevent sql injection and many people mentioned active records class. but when I google it, it only exists in codeigniter 2.
so my questions are:
is Query Builder Class in codeigniter 3 the upgraded version of Active Record Class or do they serve different purposes?
is it enough (in general) to use Query Builder Class methods like
$this->where('field', $foo);
instead of$this->where("field = '$foo'");
to prevent sql injection?
P.S. I'm using codeigniter 3 and mysql