![]() |
Only half of the data is inserted into database, but no error occurs - 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: Only half of the data is inserted into database, but no error occurs (/showthread.php?tid=46572) |
Only half of the data is inserted into database, but no error occurs - El Forum - 11-07-2011 [eluser]Mr.Data[/eluser] Hello! I have a very weird problem and now I am a little bit desperate because I can't find the mistake. First let me show you my code. Code: public function __construct() { Now here is my problem. I execute the script with the read function and no error occurs but everytime only one file is inserted into the database. So when I run the script, only the table 'j' gets some data. OK, afterwards I truncate this table and rerun the function. This time only 'k' gets some data. The next time it's again the table 'j' which gets inserted data, so the tables get alternately some data but at no time they are together filled. I already have put some "var_dump()" functions in my code but everythings seems to be OK. I know this sounds weird but does anyone of you find a mistake? |