[eluser]czetsuya[/eluser]
Hi,
Thanks for the reply, unfortunately I'm still getting the 2 IPs, weird.
1.) 64.94.x.x
2.) 202.123.x.x
The correct IP is 202.123.x.x, where did 64.x.x.x came from :-?. As far as I know if get ip failed it should return 0.0.0.0.
I called the ip like this, and insert it directly to database:
Code:
//first - correct value
$data = array(
'fname' => ucfirst($this->input->post('fname')),
'lname' => ucfirst($this->input->post('lname')),
'email' => $this->input->post('email'),
'website' => $this->input->post('website'),
'ip' => $this->input->ip_address()
.
.
);
$this->db->insert('tablea', $data);
//second - this produces wrong value
$data = array(
'id' => $id,
'ip' => $this->input->ip_address()
.
);
$this->db->insert('tableb', $data);
czetsuya