I'm planning to do a MCQ exam system. When users are doing exams I'm thinking about to create a table (temparary ) in the beginning of every exam to save user's questions numbers and user's answers. End of the exam I will calculate marks and show users right answer and wrong answer. And after that i will drop the table that created for the exam since i don't want it any more and because of the space of the database. Am i doing it write or is there any other way to do that?
Thank you.
If you want to store temporary data, Use session instead of database table.
//Start session
session_start();
//Then
$_SESSION['temporaryData'] = $data;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.