Welcome Guest, Not a member yet? Register   Sign In
Issue with data return
#2

[eluser]Rick Jolly[/eluser]
Looks like you're overwriting your results.

Replace this:
Code:
$data['contacts']['id']                =     $res->id;
$data['contacts']['username']                =     $res->username;
$data['contacts']['name']            =     $res->user_display_name;
$data['contacts']['email']            =     $res->user_display_email;
$data['contacts']['location']                =     $res->user_location;
                    
}
return $data['contacts'];

With this:
Code:
$contact['id']                =     $res->id;
$contact['username']                =     $res->username;
$contact['name']            =     $res->user_display_name;
$contact['email']            =     $res->user_display_email;
$contact['location']                =     $res->user_location;

$contacts[] = $contact;
}

return $contacts;


Messages In This Thread
Issue with data return - by El Forum - 06-02-2008, 04:01 PM
Issue with data return - by El Forum - 06-02-2008, 05:14 PM
Issue with data return - by El Forum - 06-02-2008, 11:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB