CodeIgniter does not update the database when update_string() is called
00:39 27 May 2016

this is model function

 $st);
        $where = "id=" . $id; 
        $this->db->update_string('gallery', $data, $where);
        
        return $this->db->affected_rows();
    }
}

Everything is working fine. I am also getting 2 parameter values in the submission payload, but the table update fails. The affected rows is 0.

php mysql codeigniter sql-update query-builder