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