function save_mar($p, $vars) { $c = new Params($this->db_conn); $c->getData($vars['id']); $c->id = $vars['id']; $c->value = $vars['value']; $c->desp = $vars['desp']; //echo $c->id."<BR>".$c->value."<BR>".$c->desp."<BR>";exit; $c->update(); $this->gotoURL("params.php?action=list&func={$this->func}"); //$this->browse($p); }