How to do testing on the website?

Hello, I need to make a website with tests. With the possibility of automatic grade calculation after solving all the tests. Of course with the ability to add, edit and delete tests and answers for the administrator. It seems the problem is quite clear. But 2 days can not even understand the algorithm of the website (how to add test questions and answers in the database, how can I check the correct answer and how to evaluate). I think that smart people will be able to help me out. I will be very happy.
That's something like this:
April 7th 20 at 10:46
2 answers
April 7th 20 at 10:48
First, determine in detail what you do want and how it should look. Get familiar with the algorithms used to calculate estimates. Then, identify all entities with attributes and relationships and design the database. Further define the language in which you will do, make the admin area to create and populate tests, user registration, etc. And after all that, when in the course of the implementation of all previously made will be sanded, will already site.
April 7th 20 at 10:50
True wrote @Abigayle, start with the design base, can you recommend a good book, there are painted examples, the author Seyed Tahaghoghi Guide MySQL.

Find more questions by tags MySQLYii