Welcome Guest, Not a member yet? Register   Sign In
Need Help Solve this Problem
#2

[eluser]dudeami0[/eluser]
For the error message you've given, you seem to be mixing up $query->result_array() with $query->row_array().

$query->result_array() returns a 2 Dimensional Array of results, like:

Code:
Array(
   Array( // First result
      'col1' => 'whatever',
      'col2' => 'whatever',
      'col3' => 'whatever',
      ...
   ),
   Array( // Second result
      'col1' => 'whatever',
      'col2' => 'whatever',
      'col3' => 'whatever',
      ...
   ),
   ...
)

where row_array() would return a 1 Dimensional Array, like:

Code:
Array( // First row
   'col1' => 'whatever',
   'col2' => 'whatever',
   'col3' => 'whatever',
   ...
)

Hope this helps!


Messages In This Thread
Need Help Solve this Problem - by El Forum - 11-03-2010, 08:41 PM
Need Help Solve this Problem - by El Forum - 11-04-2010, 01:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB