Simple query insert duplicates - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Simple query insert duplicates (/showthread.php?tid=33634) |
Simple query insert duplicates - El Forum - 09-02-2010 [eluser]JohnnyBravo[/eluser] Hey everybody, Do you have any idea why runs this query twice? maintance_model.php Code: function log($name, $message, $type = 'user') test it Code: function test() It insert two rows in the database, and I really don't know why? Thx for your help! Simple query insert duplicates - El Forum - 09-02-2010 [eluser]MartÃn[/eluser] That is all your code? maybe you are calling log method in another place or something like that? Regards! Simple query insert duplicates - El Forum - 09-02-2010 [eluser]WanWizard[/eluser] Or have a redirect reloading the page, or a missing image that causes a rewrite request to index.php... Set your log_threshold to 4, and check your application log. You should see multiple requests there if that is causing it. |