Retrieval of data

how to retreive the emailid store in the database using php and then send the random generated password on that emailid

actual i m a online website for student information system in that i have to make the attendance sheet for that i have to retrieve the list of student from database and then print it so suggest me how to do it

Is this meant to be the registration process for when a user is signing up/registering for a site?

yes

I think this might help you,
https://www.google.com/search?q=user+authentication+tutorial&oq=user+authentication+tutorial&aqs=chrome..69i57j0j69i60j0l3.8001j0&sourceid=chrome&espvd=210&es_sm=122&ie=UTF-8