I am creating an admission form which will ask for the information such as name, class, level, and such other information, so, I don't know how to connect to the database and how to make the database and how the database will store all that information. Can anybody explain it with real example with the code?
What you are looking for is a php/MySQL tutorial. That is not something you will find in a forum like this one. Google "php/MySQL tutorial"
PHP Academy has a wonderful collection of tutorials:
If you prefer a book, this one was instrumental for me: