How can I obtain the score? Let's talk about PHPcode & lt ;? Php $ strConn & quot; odbc: driver {microsoftaccessdriver (*. mdb)}; dbq & quot ;. realpath (& quot; db. mdb & quot;); $ connnewPDO ($ strConn); how can I calculate the score? Come in and talk about ideas
PHP code
The teacher asked us to write an examination system,
Requirements:
1. get 8 questions from the database immediately (repeatable)
2. then I want to get my score (it's hard for me)
I have heard that PHP has many masters. I 'd like to find some ideas and examples.
------ Solution --------------------
Submit the question id and the answer to the question to the background, select the correct answer comparison based on the id, and record the score sum.
------ Solution --------------------
1. filter unwanted data from post
2. array and direct functions
Helloyou0 eats a pound... how difficult is this assignment?