Welcome Guest, Not a member yet? Register   Sign In
insert query stalling when trying to pass data stored in session
#6

[eluser]Cristian Gilè[/eluser]
Did you try the cast solution?

Code:
$data = array(
'age' => (int)$this->session->userdata('age'),
'weight' => $this->input->post('weight')
);

$this->db->insert('table', $data);


Messages In This Thread
insert query stalling when trying to pass data stored in session - by El Forum - 06-05-2012, 07:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB