[eluser]xwero[/eluser]
Instead of giving id's to you checkboxes you could do this
Code:
foreach($data as $row)
{
?><input type="checkbox" name="print[]" value="<?php echo $row['id']; ?>"><?php
}
When they hit the print selected button you can have following code
Code:
$ids = (isset($_POST['print']))?implode(',',$_POST['print']):'';
if($ids != ''){
$this->db->query('select field1,field2 from table where id in ('.$ids.')');
}
With this code you don't have to use ids for your checkboxes.