Insert into database doesn't work with redirect - 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: Insert into database doesn't work with redirect (/showthread.php?tid=28508) |
Insert into database doesn't work with redirect - El Forum - 03-13-2010 [eluser]Unknown[/eluser] Hi! My controller code is the following : Code: function addtoDB() Inserting into the database doesn't work. But, if I comment redirect('member'), then the data is correctly inserted into the database... Strange, isn't it? I found a workaround by placing... Code: sleep(2); I'm using ODBC and MS Access database. I've had quite a few bugs in the past that I've been able to solve thanks to this forum, but I seem to be the first one experiencing this bug. Any help is welcome, thanks in advance! |