Your Location is: Home > Php

How to add two where condition(One is equal to and another is not equal to in associative array using php )

From: Nuku′alofa View: 2503 Keshab Pal 


 public function getAllUsers(){
        $args = array(
            'where' => "id != ".$_SESSION['user_id']
        return $this->select($args);

how can I add status equal to active or status => 'active' in above where condition

Best answer