public function setWhere($v=''){
			if(is_array($v)){
	        		$q='';
	        		if(count($v)>0){
	        			foreach($v as $key=>$value){
			            	$q.= " {$key}= '{$value}' AND";
		        		}
		        		$q=substr($q, 0, -3);
		        	}
		        	$this->where=$q;
	        	}else{
	        		$this->where=$v;
	        	}
		}
public function setWhere($v=''){
			if(is_array($v)){
	        		$q='';
	        		if(count($v)>0){
	        			foreach($v as $key=>$value){
			            	$q.= " {$key}= '{$value}' AND";
		        		}
		        		$q=substr($q, 0, -3);
		        	}
		        	$this->where=$q;
	        	}else{
	        		$this->where=$v;
	        	}
		}
public function setWhere ( $ v = '' ) { if ( is_array ( $ v ) ) { $ q = '' ; if ( count ( $ v ) > 0 ) { foreach ( $ v as $ key => $ value ) { $ q .= " {$key}= '{$value}' AND" ; } $ q = substr ( $ q , 0 , - 3 ) ; } $ this -> where = $ q ; } else { $ this -> where = $ v ; } }
CONTROLE DE WHERE
CONTROLE DE WHERE