I am creating a platform for students and teachers, and each one has different functions in their profile.
When they are registered, each one in my database is automatically assigned a 1 or a 2, depending on what type of user it is.
1 = Teacher
2 = Student
And I'm creating a PHP file called Profile.php where I've been creating functions that both profiles occupy, but I've run into functions unique to teachers.
I thought about using a query similar to this one:
if(DB::query('SELECT TipoUsuario FROM registroalumnos WHERE TipoUsuario = 1'))
Thank you.