set the checked value for the Prfesor checkbox and the student checkbox to 1
in your database, you will need 2 new columns, forProfs, forStudents
bind the forProfs column to the profesors checkbox and the forStudents column to the students checkbox.
you users table will also need a column to mark the userType as student or professor. Lets say we call this column "userType" and give it a value of 1 for students and 2 for professors
In the authenticate user server behavior on the login page, you will set the third step to store the userType column into a session variable when the user logs in.
then where you want to output the record use an if statement:
<?php if(($_SESSION['userType'] == "1" && $row_recordsetName['forStudents'] == "1") ||($_SESSION['userType'] == "2" && $row_recordsetName['forProfs'] == "1"))
<?php echo $row_recordsetName['pageContent']; ?>
<?php } ?>