It's a bit unclear to me what you want to do, basically you're saying that you want to create a form so that a student can input their data, correct?
Then after they do that you want that data to be stored via SQL and then be able to view it.
Well once that data is stored onto the SQL, you just need access to the SQL to view the info. As for creating this, perhaps the following tutorial might help:
SQL Form - SQL File - Upload File