Welcome Guest, Not a member yet? Register   Sign In
me failing with $query->result()
#3

[eluser]Evil Wizard[/eluser]
depending on how the result is passed into the view in the data array, e.g.
Code:
$data['question_results'] = $query->result();

Then in the view you would itterate through the array just like you normally would.

Code:
foreach($question_results as $question) {
         ... //processing here
    }

alternatively you could reset the array pointer and walk through the array.


Messages In This Thread
me failing with $query->result() - by El Forum - 05-07-2009, 08:08 AM
me failing with $query->result() - by El Forum - 05-07-2009, 08:13 AM
me failing with $query->result() - by El Forum - 05-07-2009, 08:15 AM
me failing with $query->result() - by El Forum - 05-07-2009, 10:08 AM
me failing with $query->result() - by El Forum - 05-07-2009, 10:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB