php - CI Active Record Query not updating -
i trying update tenders
table in db reasons updating table zeros.
after getting last_query()
string , running phpmyadmin
window updates using active records not.
other queries working apart this.
what might problem code?
here code
$data=array( 'tender_type_type_id' => $this->input->post('tender_type_id'), 'description' => $this->input->post('tdescription'), 'obtaining_documents' => $this->input->post('obtaining_docs'), 'submission_process' => $this->input->post('submission_proc'), 'obtaining_documents' => $this->input->post('obtaining_docs'), 'applicationfee' => $this->input->post('applicationfee'), 'location' => $this->input->post('location'), 'weblink' => $this->input->post('url'), 'clossing_date' => $this->input->post('endson'), 'opening_date' => $this->input->post('openedon'), 'title' => $this->input->post('title'), 'publication_date' => date('y-m-d h:i:s', time()), 'attachments' => $this->input->post('upload'), 'organization_organizationid' => $this->input->post('organizationid'), 'tender_category_category_id' => $this->input->post('categoryid'), 'towns_townid' => $this->input->post('townid'), 'accounts_accountid' =>$this->input->post('accountid'), 'tender_status_status_id' => $this->input->post('tender_status_id'), 'location' => $this->input->post('location'), 'clossing_date' => $this->input->post('endson'), 'opening_date' => $this->input->post('openedon')); $id=$this->uri->segment(3); $this->db->where('tenderid',$id); $this->db->update('tenders',$data); return print_r($this->db->last_query());
Comments
Post a Comment