[eluser]Tim Brownlaw[/eluser]
This is totally untested but should give you an idea...
It will give you a count of how many were set to 1 but not which ones!
Not sure what you want to Return so I've left that out...
Code:
function _checkSections()
{
$valid = 0;
$getUser = $this->userModel->getUserID();
$this->db->select('SectionOne, SectionTwo, SectionThree');
$this->db->where('UserID', $getUser);
$query = $this->db->get('Induction');
if($query->num_rows() > 0)
{
$row = $query->row_array() // You should only get 1 row?
foreach($row as $key=>$value)
{
if($value == 1)
{
$valid++;
}
}
}
if($valid > 0)
{
// Do stuff
}
}