[eluser]Mirage[/eluser]
Something wrong with how DMZ (or CI???) opens database connections - I'm running out of connections when saving objects in a loop:
Code:
public function shuffle_questions($exam_id)
{
// Load the questions in entered order
$question = new Sae_Question();
$question->where('exam_id' , $exam_id)
->order_by('id')
->get();