Welcome Guest, Not a member yet? Register   Sign In
Retrieving users profile and displaying it.
#3

[eluser]puffnstuff[/eluser]
[quote author="Pedroshow" date="1344782931"]
Code:
function user_profile($id) {
$this->db->select('*');
$this->db->from('users');
$this->db->join('profile', 'users.id = profile.id','left');
$this->db->where('users.id', $id);
$query = $this->db->get();
        
return $query->result();
}
[/quote]

Changed it to that and I am getting...

Code:
Severity: Warning

Message: Missing argument 1 for Profile_model::user_profile(), called in /Applications/MAMP/htdocs/CodeIgniter_2.1.2/application/controllers/user.php on line 34 and defined

Filename: models/profile_model.php

Line Number: 15

Code:
Severity: Notice

Message: Undefined variable: id

Filename: models/profile_model.php

Line Number: 20


Messages In This Thread
Retrieving users profile and displaying it. - by El Forum - 08-12-2012, 02:19 AM
Retrieving users profile and displaying it. - by El Forum - 08-12-2012, 07:48 AM
Retrieving users profile and displaying it. - by El Forum - 08-12-2012, 09:29 AM
Retrieving users profile and displaying it. - by El Forum - 08-12-2012, 09:49 AM
Retrieving users profile and displaying it. - by El Forum - 08-12-2012, 10:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB