php - Update a single record in NotORM is not working -


this code

    public function getbyid($id)     {         $source= $this->getsource();         return $this->db->usuarios[array('id' => $id)];     }      public function update($user, $id)     {         $olduser = $this->getbyid($id);          if($olduser)         {             return $olduser->update(array('nombreusuario' => $user['nombreusuario'],                                           'contrasena' => md5(sha1($user['contrasena'])),                                           'nombre' => $user['nombre'],                                           'apellido' => $user['apellido'],                                           'email' => $user['email'],                                           'fechanacimiento' => $user['fechanacimiento'],                                           'rolid' => $user['rolid'],                                           'imagen' => $user['imagen'],                                           'modificadopor' => $_session['nombreusuario'],                                           'modificadofecha' => date('y-m-d h:i:s')));         }         else         {             return "not found";         }     } 

but got error

notice: undefined index: id in c:\xampp...\vendor\vrana\notorm\notorm\row.php on line 166

i reading notorm doc , try examples, update still not working me.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -