![]() |
active record bug: count_all() does not reset where() - 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: active record bug: count_all() does not reset where() (/showthread.php?tid=23135) |
active record bug: count_all() does not reset where() - El Forum - 10-01-2009 [eluser]Bramme[/eluser] Code: // amount of updates produces this query: "UPDATE `sd_stories` SET `parts` = 1 WHERE `story_id` = '3' AND `id` = '3'" Not really wanted behavior. active record bug: count_all() does not reset where() - El Forum - 10-14-2009 [eluser]khagendra[/eluser] Please check $active_record in config/database.php. it should be like this $active_record = TRUE; perhaps it may be ok. please once do like this Code: function test1($story_id) hope u understand it. |