Welcome Guest, Not a member yet? Register   Sign In
[solved] Error: Call to a member function punch_in() on a non-object in
#3

[eluser]the_unforgiven[/eluser]
Try
Code:
$data = array(
'userid'=>$this->input->post('userid'),
'projectid'=>$this->input->post('projectid'),
'time'=>now()
);
$this->db->insert('punch', $data);
return;

Instead of what you were doing

Code:
function punch_in()
{
  $data$this->load->database();
  $this->userid = $this->input->post('userid');
  $this->projectid = $this->input->post('projectid');
  $this->time = now();
  //$this->db->insert('punch',$this);
}


Messages In This Thread
[solved] Error: Call to a member function punch_in() on a non-object in - by El Forum - 02-07-2012, 06:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB