Welcome Guest, Not a member yet? Register   Sign In
need to retrieve records based on a value from another query
#3

[eluser]Brad K Morse[/eluser]
Your reply definitely helped!

I think it is working now, will confirm in the morning.

controller
Code:
$data['comments'] = $this->report_model->getCommentsNotDuplicateByGoal($id);

foreach($data['comments'] as $c):
  $data['comment_info'][$c->SP_COMMENTS_ID] =    $this->report_model->getStepRank($c->SP_COMMENTS_ID);
endforeach;

view

Code:
<?php
foreach($comments as $r):

  foreach($comment_info[$r->SP_COMMENTS_ID] as $c):
    print '['.$c->SP_STEPS_RANK.'] ';
  endforeach;

endforeach;
?>


Messages In This Thread
need to retrieve records based on a value from another query - by El Forum - 01-05-2011, 04:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB