Conditional fetching data from a table
问题 My login system opens a different window if the username &password written correspond to a simple user or an ADMIN. I got 3 tables: "cursadas" includes: (id, user_id[is the foreign key to the column "id" of the table "usuarios"], subject_id[is the foreign key to the column "id" of the table "materias"], grade, date) "usuarios" includes: (id,username,name,lastname,password,type,status,date) "materias" includes: (id, career_id, name, description, hours) This is the table "usuarios": So,when i