Hi guys
Fantastic tool this GC...
hope you can help me... I´v checked on this forum and nothing alike is here...
I´m trying to post fill some data in my table using call_back_after_insert.
my function is:
public function clienteyserie (){
$id_clientes = $this->session->userdata('id_clientes');
$id_serial_cliente = $this->session->userdata ('id_serial_cliente');
$query = $this->db->get_where('clientes', array('id_clientes' => $id_clientes));
$query = $query->result_array();
$id_clientes = $query[0]['empresa_cliente'];
$query = $this->db->get_where('series_cliente', array('id_serial_cliente' => $id_serial_cliente));
$query = $query->result_array();
$id_serial_cliente = $query[0]['serie'];
$data = array(
'cliente'=> $id_clientes,
'serie' => $id_serial_cliente,
);
$this->db->insert('tarealog', $data);
return true;
}
and my call_back function is:
$crud->callback_after_insert(array($this,'clienteyserie'));
My problem is that on the target table, I´m getting the data in two different rows instead of a single one?
One row for the data table...
One row for the function data...
can please help? it may me something obvious, but I have 5 hours on this, without a clear view...
thanks in advanced