$sql2="select*from table_tea where (STF_FNAME_1='$Teacher1' AND STF_LNAME_1='$LN1') OR (STF_FNAME_1='$Teacher2' AND STF_LNAME_1='$LN2') AND DAY='$DAY' AND TIME_1='$TIME_1' AND TIME_2='$TIME_2' AND TIME_3='$TIME_3' AND TIME_4='$TIME_4' AND TIME_5='$TIME_5' AND TIME_6='$TIME_6' AND TIME_7='$TIME_7' AND TIME_8='$TIME_8' AND TIME_9='$TIME_9' AND TIME_10='$TIME_10' ";