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

[eluser]Cristian Gilè[/eluser]
Try to cast the session value:

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-04-2012, 02:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB