Online question answering system
A峰
A峰 2020-08-26 23:19:45
0
2
1450

Mainly do single-choice and multiple-choice questions! I put the questions, options and correct answers into the same database, three questions! !

Can I design the option as a field and store it in json? Are the answers stored in another field?

When the user answers the question, I return all the questions, options and answers. When the user selects the answer, how should I judge whether the answer selected by the user is correct? Or do we need to request the database for the answer?

A峰
A峰

reply all(1)
Alex Gao

1. Doesn’t it taste good with implode? Why use json? 2. Re-visit the database to determine whether it is right or wrong.

  • reply Do the content of the answer field and the content of the options have to be exactly the same? Compare with equal sign?
    A峰 author 2020-08-27 08:24:28
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template