Querying MySql database

I created a MYSQL database for students educational records. I want code that I can be embedded on the school’s site for them to be able to check their records online using their Identification number and password. The code can PHP or Java script applet.

This question has to be up there with one of the most generic questions I have read on this forum.

exactly what aspect of this are you having trouble with?

if you have never done this beofre, it is not the kind of thing that can be answered in a discussion forum – entire books have been written on the subject

see http://sitepoint.com/books