Need help with CI Query Error Handling - 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: Need help with CI Query Error Handling (/showthread.php?tid=37537) |
Need help with CI Query Error Handling - El Forum - 01-12-2011 [eluser]Unknown[/eluser] Hi All, I am trying to execute an MySql query using the CI Active methods. If the query is malformed, then CI invokes internal server error 500 and quits without processing the next steps.. I need to roll back all the other queries processed before that error statement, and the roll back is also not happening.. can you help pls. The code snippets is as below: Code: function dbInsertInformationToDB($data_array) Need help with CI Query Error Handling - El Forum - 01-13-2011 [eluser]Cristian Gilè[/eluser] Hi dazzlers, close the transaction at the end of the foreach loop: Code: function dbInsertInformationToDB($data_array) Cristian Gilè |