Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Indistinctive DB write problem
#1

[eluser]predat0r[/eluser]
I have an crud update method, which only updates the db table fields when I clear the input field (textarea) in the form, or modify the text inside. When I don't modify this field's content, so leave as is, the AR update() method doesn't run successful, the affected_rows() returns 0 / false.
I have only problem with this field.

the field has simple validation rule:

Code:
$this->form_validation->set_rules('description', 'Description', 'trim');

If I check the $_POST array after submitting the form, there are all the necessary datas, or if I check the last_query() method, the result is always the same, it has a formal correct query inside.
I have no error in mysql error log.

Of course I triple checked the typos, and it's not the first time I coded a crud, so don't have a clue..


Messages In This Thread
[SOLVED] Indistinctive DB write problem - by El Forum - 02-15-2012, 11:18 AM
[SOLVED] Indistinctive DB write problem - by El Forum - 02-15-2012, 11:50 AM
[SOLVED] Indistinctive DB write problem - by El Forum - 02-16-2012, 01:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB