Welcome Guest, Not a member yet? Register   Sign In
double Insert into database [solved - it was Firefox]
#3

[eluser]xpix[/eluser]
What do you mean by that?

I extended the Controller and the Model.

I auto load the following:

$autoload['libraries'] = array('database','form_validation','session','table');
$autoload['helper'] = array('url','form','security','html');
$autoload['plugin'] = array();
$autoload['config'] = array();
$autoload['language'] = array();
$autoload['model'] = array();


I have no clue why the any of my libraries/model are called twice.


Here's more info


It seems that the second insert is done after I display the data. So the first time you insert and list everything is OK.
But if you look in the database there are 2 items with the sam information.

So the second insert happens after the call $data['content'] = $this->Program->list_all(); from the }else if($action == 'add'){ section

This is even weirder.


Messages In This Thread
double Insert into database [solved - it was Firefox] - by El Forum - 05-24-2009, 10:40 AM
double Insert into database [solved - it was Firefox] - by El Forum - 05-24-2009, 11:29 AM
double Insert into database [solved - it was Firefox] - by El Forum - 05-24-2009, 11:39 AM
double Insert into database [solved - it was Firefox] - by El Forum - 05-24-2009, 11:40 AM
double Insert into database [solved - it was Firefox] - by El Forum - 05-24-2009, 11:49 AM
double Insert into database [solved - it was Firefox] - by El Forum - 05-24-2009, 12:02 PM
double Insert into database [solved - it was Firefox] - by El Forum - 05-24-2009, 12:41 PM
double Insert into database [solved - it was Firefox] - by El Forum - 05-24-2009, 12:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB