What is problem behide my code? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: What is problem behide my code? (/showthread.php?tid=25984) |
What is problem behide my code? - El Forum - 01-03-2010 [eluser]Unknown[/eluser] I test again many time. But i don't know why below code execute wrong result. This is code for controller Code: // Update number viewed of topic This code for model Code: function update($id, $data) I check var_dump before call $this->media_topic_model->update($item['topic_id'], $item); function and inside this function => data are OK. But when codeigniter core execute. Value of topic_viewed inc 4,5 or 6, 7... . Eg, 10 => 17 ? Do you meet this problem ? |