[eluser]nullsys[/eluser]
Hello all,
I am brand new to Codeigniter, and of course, I am having a little issue.
One which im sure is so simple to solve, its hardly worth this amount of text.
Currently, I am returning database results and storing them in $query.
I would like to access one particular value (not all) and use it.
Here is the array in $query:
Quote:Array ( [0] => stdClass Object ( [id] => 1 [name] => test [owner] => demo [family] => 1 [male] => 1 [registered] => 0 [xp] => 1000 ) )
Here, for example, is what I have tried, and the corresponding error msg:
Code:
print_r($query['family'];
Quote:Message: Undefined index: family
To me, it looks like "family" should return: 1. But, obviously I've missed the trick.
Any help at all would be appreciated, apologies.
I have tried searching, but to no avail.
Thank you.