application/models/mobile_api/Common_model.php
/* Count the my tribe members list */
Count the my tribe members list
Count the my tribe members list
public function count_get_my_tribe_member_list($post_data){
        $searchId = $post_data['searchId'];
        $loginUserId = $post_data['loginUserId']; 
        $sql = "SELECT * FROM tribe WHERE searchId= $searchId AND fromuserId= $loginUserId  AND deleteFlag !=1 AND status = 'accept'";
        $record = $this->db->query($sql);
        if($record->num_rows()>0){
            return $record->num_rows();
        }       
    }
public function count_get_my_tribe_member_list ( $ post_data ) { $ searchId = $ post_data [ 'searchId' ] ; $ loginUserId = $ post_data [ 'loginUserId' ] ; $ sql = " SELECT * FROM tribe WHERE searchId=  $ searchId  AND fromuserId=  $ loginUserId   AND deleteFlag !=1 AND status = 'accept' " ; $ record = $ this -> db -> query ( $ sql ) ; if ( $ record -> num_rows ( ) > 0 ) { return $ record -> num_rows ( ) ; } }
Count the my tribe members list
Count the my tribe members list