[eluser]Evil Wizard[/eluser]
how are you looping through the candidates array?
Code:
<? foreach($candidates as $candidate):?>
<tr>
<td>
<a href="<?= site_url(); ?>index.php/projects/rollout_details/<?=$candidate['pid']; ?>/<?= $candidate['id']; ?>"> <?= $candidate['code']; ?></a></td>
<td><?=$candidate['latitude'];?></td>
<td><?=$candidate['longitude'];?></td>
<td><?=$candidate['isactive'];?></td>
<td><a href="../candidate_active/<?=$candidate['id']">Mark as Active</a></td>
</tr>
<?endforeach;?>
something like that should only produce rows for the elements withing the candidates array.