multiple where condition in codeigniter

Posted by Angular - 1 year ago

PHP Codeigniter 3 Multiple WHERE Conditions Example

As I will cover this Post with live Working example to develop How to use multiple where condition in Codeigniter?, so the some major files and Directory structures for this example is following below.This codeigniter 3 function enables you to set simple WHERE multiple conditions clauses using one List of four methods: where and or condition in codeigniter

  • using Simple key/value method
  • using Custom key/value method
  • using Associative array method
  • using Custom string:

    $multipleCIWhere = ['name' => $name, 'email' => $useremail, 'isactive' => $isactive]; $this->db->where($multipleCIWhere); $this->db->get("pakainfo_tblName");