Welcome Guest, Not a member yet? Register   Sign In
result_array() turns nothing but 'array' text.
#4

[eluser]DarkManX[/eluser]
http://ellislab.com/codeigniter/user-gui...sults.html

you can look up the function you use - result_array()
it return an array of objects, like:
Code:
array(
0 => Object(
  'name' => 'user 1'
),
1 => Object(
  'name' => 'user 2'
)
)

to but out second users name:
Code:
<?= $result_array[1]->name; ?>

you can just var_dump() your vars to see how you can get to the data you need.


Messages In This Thread
result_array() turns nothing but 'array' text. - by El Forum - 08-29-2012, 02:31 AM
result_array() turns nothing but 'array' text. - by El Forum - 08-29-2012, 02:48 AM
result_array() turns nothing but 'array' text. - by El Forum - 08-29-2012, 02:52 AM
result_array() turns nothing but 'array' text. - by El Forum - 08-29-2012, 03:19 AM
result_array() turns nothing but 'array' text. - by El Forum - 08-29-2012, 03:32 AM
result_array() turns nothing but 'array' text. - by El Forum - 08-29-2012, 03:39 AM
result_array() turns nothing but 'array' text. - by El Forum - 08-29-2012, 03:43 AM
result_array() turns nothing but 'array' text. - by El Forum - 08-29-2012, 04:33 AM
result_array() turns nothing but 'array' text. - by El Forum - 08-29-2012, 06:00 AM
result_array() turns nothing but 'array' text. - by El Forum - 08-29-2012, 07:49 AM
result_array() turns nothing but 'array' text. - by El Forum - 08-29-2012, 09:23 AM
result_array() turns nothing but 'array' text. - by El Forum - 08-29-2012, 09:51 AM
result_array() turns nothing but 'array' text. - by El Forum - 08-29-2012, 09:57 AM
result_array() turns nothing but 'array' text. - by El Forum - 08-29-2012, 10:00 AM
result_array() turns nothing but 'array' text. - by El Forum - 08-29-2012, 11:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB