add_param("and", "binary tawajoh like '%$msn%' "); $wherest->add_text( "some text "); $wherest->get_statment(); */ ////@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ if(!class_exists('wherest')){ class wherest{ var $where=''; function add_param($op , $value) { if($this->where == '') $this->where=" where " . $value . " "; else $this->where= $this->where . " " . $op . " " . $value; } function add_text($value) { $this->where=$this->where . $value ; } function get_statment() { return $this->where; } }} ?>