line 21:-
$sql="SELECT DISTINCT sem from $_SESSION['ye']";
and I get an error
" Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\xampp\htdocs\try1\Model\attendanceModel.php on line 21"