cakephp - update function not working with where condition -
if($mydetails=$this->mydetails->findbydoctor_id($id)){//to update $this->set('mydetails', $mydetails); if ($this->request->is('post')) { if ($this->mydetails->updateall($this->request->data, array('doctor_id' => "'".$id."'"))) { $this->session->setflash(__('your details has updated.')); } else { $this->session->setflash(__('unable updated.')); } } //print_r($mydetails); }// here trying update form details using id not worked
if trying use cake's magic methods
$this->mydetails->findbydoctor_id($id) it should :
$this->mydetails->findbydoctorid($id) give @ try
Comments
Post a Comment