CodeIgniter Forums
Database being updated 3 times error - Help :o( - 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: Database being updated 3 times error - Help :o( (/showthread.php?tid=47517)



Database being updated 3 times error - Help :o( - El Forum - 12-12-2011

[eluser]Unknown[/eluser]
Hi all,

I'm an experiencing an issue where by a controller method I'm running is somehow calling one of the database updates 3 times instead of once, thereby reducing the balance of a field e times what is should be.

I have stepped through every line of the method and the model calls it makes to debug; and it works as it should do at every step. But when I run it in its totality through to the end it appears to have executed 3 times. Always exactly 3 no-matter what test data I use.

It feels almost as if the method is called a second and third time once it has completed once; but there are no loops within it to do so.

I read somewhere on here that the codeigniter controller method might be reloaded if there is a missing css file?

Can anyone put me out of misery?