login for each user

hai all…

i have a database called mylib,

which contain two users 1.librarian and 2.students

All i want is to display the whole details of student when i am logged in as librarian


when a student is logged in only show the profile of student and books he/she borrowed

plz somebody helps me…I’m struggling with this for a week…