Welcome Guest, Not a member yet? Register   Sign In
function check
#5

[eluser]LuckyFella73[/eluser]
After that line:
Code:
$result = $this->call_db->check_user($this->input->post('email_address'),$this->input->post('password'));

You can access the ID by:
Code:
$id = $result->id;

For better understanding when looking at the code later you could write
Code:
$row = $this->call_db->check_user($this->input->post('email_address'),$this->input->post('password'));

// and then:
$id = $row->id

Just a personal preference ..


Messages In This Thread
function check - by El Forum - 05-29-2012, 05:13 AM
function check - by El Forum - 05-29-2012, 07:11 AM
function check - by El Forum - 05-29-2012, 07:37 AM
function check - by El Forum - 05-29-2012, 07:51 AM
function check - by El Forum - 05-29-2012, 07:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB