I'm running a codeigniter application, and i can't get this simple insert to work well.

```
if(!$this->db->insert('myTable',$entry)){
    $p3 = 0;
}else{
    echo $this->db->last_query();
    var_dump($this->db->_error_message());
}

```

the debug in the "else" clause always show me an empty string for error message, and if i test the last\_query in phpmyadmin, the insert work well.

But the insert isn't happening when i normally run the app, even if the "else" is launched, implying the request succeed.

any clue ?

UPDATE : exemple of $entry array :

```
$entry = array(
    'id' => '',
    'id_devis' => $current[0]->id,
    'metier' => $_POST[$i+1 . '_create_metier'],
    'days' => $_POST[$i+1 . '_create_daycount'],
    'price' => $_POST[$i+1 . '_create_price'],
    'cr_date' => date('Y-m-d H:i:s'),
    'user' => ''
);

```

$current is an extract of another table (using $this->db->get), and all the datas are fine, since i can insert them through the echo of last\_query()