Hi everybody,
I'm using CodeIgniter framework. I use checkboxes for student_type, lecturer_type and user_type, but it can't insert in my DB table. They must be inserted in 3 different table columns.
My form is:

  <input type='checkbox' name="student_type" value='0'>Student
            <input type='checkbox' name="user_type" value='1'>Customer
             <input type='checkbox' name="lecturer_type" value='2'>Lecturer

And my code for inserting data is:

 public function registrate()

        return $user;