I'm using CodeIgniter 3. I just need to know if there is a 'where' condition added to the query builder until now.
I'm calling a 'delete' function that deleted rows from database And it's possible to add a where condition before calling that function. Something like this:
public function delete()
{
// Here I need to know if where condition added to the db class
$this->db
->where('field', 1)
->delete('my_table');
}
public function main()
{
$this->db->where('field2', 2);
$this->delete();
}