where(" option_name = '%s' " ,array($option_name))->find(); if ($res) { return $res['option_value'] ; } return false; } // public function set($option_name,$option_value){ $sql = " replace into options (option_name , option_value ) values ('$option_name' , '$option_value')"; return $this->execute($sql);; } }