it is about manyToMany.
some students have one teacher, some teachers have one student.
I have 3 forms:studens,studens_teachers and teachers,like robot,robot_parts,parts. If i want find the only one teacher of 3 students called jack,bob,and michael ,and their ID in studens_teachers are 1,2 and 3.Can i do this? :
$theOnlyOneTeacherID=getStudents_teacher(array('students_id'=>array(1,2,3)));
if not,how ?